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

Vamos praticar!

R로 하는 탐색적 데이터 분석

Preparing Video For Download...