Biểu đồ tần suất

Giới thiệu về Tidyverse

David Robinson

Chief Data Scientist, DataCamp

Biểu đồ tần suất

TNRM2C9.png

ggplot(gapminder_2007, aes(x = lifeExp)) +
  geom_histogram()
Giới thiệu về Tidyverse

Điều chỉnh độ rộng cột

0rQSC2C.png

ggplot(gapminder_2007, aes(x = lifeExp)) +
  geom_histogram(binwidth = 5)
Giới thiệu về Tidyverse

Trục x theo log

scale_x_log10()
Giới thiệu về Tidyverse

Hãy luyện tập!

Giới thiệu về Tidyverse

Preparing Video For Download...