Rで学ぶ探索的データ分析
Andrew Bray
Assistant Professor, Reed College



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

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

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

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

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