R로 하는 탐색적 데이터 분석
Andrew Bray
Assistant Professor, Reed College



두 구성요소를 따로 분석
두 수준의 범주형 변수로 축소

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로 하는 탐색적 데이터 분석