Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ヒストグラムと箱ひげ図 / Histograms and Box-and-Whisker Plots

Kenji Saito
November 28, 2023

ヒストグラムと箱ひげ図 / Histograms and Box-and-Whisker Plots

早稲田大学大学院経営管理研究科「企業データ分析」2023 冬のオンデマンド教材 第4回で使用したスライドです。

Kenji Saito

November 28, 2023
Tweet

More Decks by Kenji Saito

Other Decks in Business

Transcript

  1. ( 20 ) 1 • 2 R • 3 •

    4 • 5 6 ( ) 7 (1) 8 (2) 9 R ( ) (1) 10 R ( ) (2) 11 R ( ) (1) 12 R ( ) (2) 13 GPT-4 14 GPT-4 15 ( ) LaTeX Overleaf 8 (12/14 ) / (2 ) OK / 2023 4 — 2023-11 – p.3/11
  2. ( ) (histogram) x ( : 10 ) y (

    ) 2023 4 — 2023-11 – p.5/11
  3. “ .txt” # > <- read.table(" .txt", header=T) > attach(

    ) # ( ) > hist( ) # > hist( ) # # > hist( , xlab=" ", ylab=" ", main=" ") ‘hist( . . . )’ ‘xlab’ ‘ylab’ x y ‘main’ 2023 4 — 2023-11 – p.6/11
  4. (box plot / box-and-whisker plot) ( ; box) 1 2

    ( ) 3 1 −1 . 5× 3 +1 . 5× ◦ 2023 4 — 2023-11 – p.8/11
  5. “ .txt” # attach( ) > boxplot( ) # >

    boxplot( ) # > boxplot( , ) # > boxplot( ) # > boxplot( , ylim=c(0, 100)) # 0 100 ‘boxplot( . . . )’ ( ) ( ) boxplot( [2:3], ylim=c(0, 100)) 2023 4 — 2023-11 – p.9/11
  6. ⱥㄒ ᩘᏛ 0 20 40 60 80 100 2023 4

    — 2023-11 – p.10/11