library(tidyr)
test <- gather(test,parameter,value,O3:PM2.5)
library(ggplot2)
ggplot(test,aes(x=factor(class,levels =c("Annual", "Spring", "Summer", "Autumn", "Winter")),y=value,fill=parameter))+stat_boxplot(geom = "errorbar",width=0.8,lwd=0.1)+geom_boxplot(width=0.8,position=position_dodge(0.8))+**labs(x="Group",y="Concentration(ug/m³)")**+theme_test()
ggplot绘制箱体图如何修改坐标轴标题
最新推荐文章于 2024-07-29 15:11:22 发布