ggplot2常见的四种箱线图是什么
这篇文章主要介绍“ggplot2常见的四种箱线图是什么”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“ggplot2常见的四种箱线图是什么”文章能帮助大家解决问题。
成都创新互联-专业网站定制、快速模板网站建设、高性价比西塞山网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式西塞山网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖西塞山地区。费用合理售后完善,10余年实体公司更值得信赖。
p <- ggplot(data=employee,aes(x="薪资",y=salary)) p+geom_boxplot(width=0.3)

p <- ggplot(data=employee,aes(x=jobcat,y=salary)) p+geom_boxplot()

p+geom_boxplot(aes(fill=jobcat))

p+geom_boxplot(aes(fill=jobcat))+labs(title="不同职位类别薪资分布",x="职位类别", y = "当前薪资")

p+geom_boxplot()+geom_jitter(width = 0.2, alpha = 0.5, color = 'red')

p+geom_boxplot()+facet_wrap(~gender)

关于“ggplot2常见的四种箱线图是什么”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注创新互联行业资讯频道,小编每天都会为大家更新不同的知识点。
新闻名称:ggplot2常见的四种箱线图是什么
本文路径:http://pwwzsj.com/article/jjgcij.html