Check-in 1

Phân tích Khám phá Dữ liệu với R

Andrew Bray

Assistant Professor, Reed College

Review

ch4_2.003.png

Phân tích Khám phá Dữ liệu với R

Review

ch4_2.004.png

Phân tích Khám phá Dữ liệu với R

Zero inflation strategies

  • Analyze the two components separately
  • Collapse into two-level categorical variable

ch4_2.006.png

Phân tích Khám phá Dữ liệu với R

Zero inflation strategies

  • Analyze the two components separately

  • Collapse into two-level categorical variable

ch4_2.007.png

Phân tích Khám phá Dữ liệu với R

Zero inflation strategies

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

ch4_2.009.png

Phân tích Khám phá Dữ liệu với R

Bar chart options

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

ch4_2.011.png

Phân tích Khám phá Dữ liệu với R

Bar chart options

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

ch4_2.012.png

Phân tích Khám phá Dữ liệu với R

Let's practice!

Phân tích Khám phá Dữ liệu với R

Preparing Video For Download...