점검 1

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

Andrew Bray

Assistant Professor, Reed College

검토

검토 ch4_2.003.png

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

검토

검토 ch4_2.004.png

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

제로 인플레이션 전략

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

제로 인플레이션 전략 ch4_2.006.png

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

제로 인플레이션 전략

  • 두 구성요소를 따로 분석

  • 두 수준의 범주형 변수로 축소

제로 인플레이션 전략 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로 하는 탐색적 데이터 분석

연습해 봅시다!

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

Preparing Video For Download...