input.txt",header=T,sep="\t")
## 绘制箱线图
p <- ggboxplot(traits, x="Type", y="Traits",color="Type",palette=c(...如果你想将组间差异显著性检验结果标在图上的话,可以用以下代码:
## 输入进行差异显著性检验的组
groups <- list(c("A","B"),c("B","C"),c("A","C"))
##...参考资料:
https://www.jianshu.com/p/5d541e44bb5c
https://cran.r-project.org/web/packages/ggpubr/ggpubr.pdf