確認 1

Rで学ぶ探索的データ分析

Andrew Bray

Assistant Professor, Reed College

復習

レビュー ch4_2.003.png

Rで学ぶ探索的データ分析

復習

レビュー ch4_2.004.png

Rで学ぶ探索的データ分析

ゼロ過剰への戦略

  • 2つの構成要素を別々に分析する
  • 2水準のカテゴリ変数にまとめる

ゼロ過剰の対処 ch4_2.006.png

Rで学ぶ探索的データ分析

ゼロ過剰への戦略

  • 2つの構成要素を別々に分析する

  • 2水準のカテゴリ変数にまとめる

ゼロ過剰の対処 ch4_2.007.png

Rで学ぶ探索的データ分析

ゼロ過剰への戦略

email %>%
  mutate(zero = exclaim_mess == 0) %>%
  ggplot(aes(x = zero)) +
  geom_bar() +
  facet_wrap(~spam)

ゼロ過剰の対処 ch4_2.009.png

Rで学ぶ探索的データ分析

棒グラフのオプション

email %>%
  mutate(zero = exclaim_mess == 0) %>%
  ggplot(aes(x = zero, fill = spam)) +
  geom_bar()

棒グラフオプション ch4_2.011.png

Rで学ぶ探索的データ分析

棒グラフのオプション

email %>%
  mutate(zero = exclaim_mess == 0) %>%
  ggplot(aes(x = zero, fill = spam)) +
  geom_bar(position = "fill")

棒グラフオプション ch4_2.012.png

Rで学ぶ探索的データ分析

Passons à la pratique !

Rで学ぶ探索的データ分析

Preparing Video For Download...