ggplot2的一些很有用又容易忘记的点
当对散点图添加拟合线的时候,
ggplot(iris, aes(Sepal.Length, Petal.Length))+
geom_point()+
geom_smooth(method = ‘loess’, se = F, color = ‘red’, size = 2, linetype = 6, alpha = 0.25)
但是当你想要透明的的线的时候此时无效,你可以这样:ggplot(iris, aes(Speal.Length, Petal.Length))+
geom_point()+
g..
原创
2021-01-10 18:27:41 ·
294 阅读 ·
0 评论