使用属性

使用 ggplot2 进行数据可视化入门

Rick Scavetta

Founder, Scavetta Academy

不是美学映射,而是属性!

ggplot(iris, aes(x = Sepal.Length, 
                 y = Sepal.Width)) + 
  geom_point(color = "red")
类型 属性
颜色 "red"

geom_*() 中设置属性。

颜色属性设置为"red"

使用 ggplot2 进行数据可视化入门

不是美学映射,而是属性!

ggplot(iris, aes(x = Sepal.Length, 
                 y = Sepal.Width)) + 
  geom_point(size = 10)
类型 属性
大小 4

使用 ggplot2 进行数据可视化入门

不是美学映射,而是属性!

ggplot(iris, aes(x = Sepal.Length, 
                 y = Sepal.Width)) + 
  geom_point(shape = 4)
类型 属性
形状 4

使用 ggplot2 进行数据可视化入门

Passons à la pratique !

使用 ggplot2 进行数据可视化入门

Preparing Video For Download...