安装ggplot2

1:安装ggplot2

install.packages('ggplot2')

2:导入gglot2包

require(ggplot2)

3:查看帮助

help(ggplot2)

4:画mtcars测试下

ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point(colour = "red", size = 3)


你可能感兴趣的:(安装ggplot2)