R语言怎么制作散点图
本篇内容介绍了“R语言怎么制作散点图”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
成都创新互联主要从事成都做网站、网站建设、外贸营销网站建设、网页设计、企业做网站、公司建网站等业务。立足成都服务忠县,10年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:028-86922220

library(ggplot2)
ggplot(data=employee,aes(x=salbegin,y=salary))+geom_point(shape=21,size=3)

p <- ggplot(data=employee,aes(x=salbegin,y=salary))+geom_point(shape=21,size=3) p+geom_smooth(method = lm)

p <- ggplot(data=employee,aes(x=salbegin,y=salary,color=jobcat))+geom_point(shape=21,size=3)

p+geom_smooth(method = lm)

p <- ggplot(data=employee,aes(x=salbegin,y=salary))+geom_point(shape=21,size=3) p+facet_wrap(~minority)

“R语言怎么制作散点图”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联网站,小编将为大家输出更多高质量的实用文章!
标题名称:R语言怎么制作散点图
本文来源:http://azwzsj.com/article/ghijds.html