形狀與轉換

R 的探索式資料分析

Andrew Bray

Assistant Professor, Reed College

峰態(模態)

Screen Shot 2019-08-08 at 8.46.20 PM.png

R 的探索式資料分析

偏態

ch3_3.003.png

R 的探索式資料分析

偏態

ch3_3.004.png

R 的探索式資料分析

偏態

ch3_3.005.png

R 的探索式資料分析

收入的形狀

ggplot(life, aes(x = income, fill = west_coast)) +
  geom_density(alpha = .3)

ch3_3.009.png

R 的探索式資料分析

收入的形狀

ggplot(life, aes(x = income, fill = west_coast)) +
  geom_density(alpha = .3)

ggplot(life, aes(x = log(income), fill = west_coast)) + geom_density(alpha = .3)

ch3_3.012.png

R 的探索式資料分析

一起來練習吧!

R 的探索式資料分析

Preparing Video For Download...