探序基因肿瘤研究院 整理
1. 某基因在Tumor和Normal两组的表达量的图
在一个文本文件构造数据文件:

library(ggpubr)
GeneExp <- read.table("D:/plotxxt.txt")
ggboxplot(GeneExp, x = "V1", y = "V2", add = "dotplot")

或者:
p <- ggboxplot(GeneExp, x = "V1", y = "V2", add = "jitter",title = gene)
p + stat_compare_means(method = "t.test")
图上将显示有p值
d
网友评论