チェックイン 2

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

Andrew Bray

Assistant Professor, Reed College

スパムと画像

email %>%
  mutate(has_image = image 0) %>%
  ggplot(aes(x = as.factor(has_image), fill = spam)) +
  geom_bar(position = "fill")

ch4_3.003.png

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

スパムと画像

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

ch4_3.004.png

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

棒の並び順

ch4_3.006.png

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

棒の並び順

ch4_3.007.png

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

棒の並び順

ch4_3.008.png

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

棒の並び順

email <- email %>%
  mutate(zero = exclaim_mess == 0)

levels(email$zero)
NULL
email$zero <- factor(email$zero, 
  levels = c("TRUE", "FALSE"))
Rで学ぶ探索的データ分析

棒の並び順

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

ch4_3.009.png

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

棒の並び順..

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

ch4_3.010.png

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

Passons à la pratique !

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

Preparing Video For Download...