library("ggsignif")
# geom_signif()
# compare_means(value ~ group, data = exprSet_L,method="wilcox.test", paired=FALSE)
my_comparisons <- list(c("T1","T2"), c("T1","T3"),c("T1", "T4"))
ggplot(exprSet_L,aes(group,value,fill=group))+
geom_boxplot(width=0.5)+
theme(plot.title=element_text(size = 25),axis.text.x=element_text(size=25,angle=0),axis.text.y=element_text(size=25),axis.title.x=element_text(size = 25),axis.title.y=element_text(size = 25))+
labs(x=gene_name, y= 'Expression')+
geom_signif(comparisons = my_comparisons,step_increase = 0.1,map_signif_level = F,test = t.test,size=2,textsize = 6)
# theme_set(theme_set(theme_bw(base_size=22)))
# wilcox.test
# geom_signif(mapping = NULL, data = NULL, stat = "signif",
# position = "identity", na.rm = FALSE, show.legend = NA,
# inherit.aes = TRUE, comparisons = NULL, test = "wilcox.test",
# test.args = NULL, annotations = NULL, map_signif_level = FALSE,
# y_position = NULL, xmin = NULL, xmax = NULL, margin_top = 0.05,
# step_increase = 0, tip_length = 0.03, size = 0.5, textsize = 3.88,
# family = "", vjust = 0, ...)
ggsignif箱线图添加显著性差异标识(多组分析)
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 箱线图添加显著性差异标识 有时候我们会看到如上图片,觉得挺好,但是如何实现呢?没有做的的时候,觉得挺难,但是真要做...