ggplot2 + ggsignif画散点图叠加箱线图带t-test

library(ggplot2)
library(ggsignif)
p<-ggplot(cell,aes(x=Type,y=Ratio,colour = Type)) +
 geom_boxplot(pch=16,cex=1)+geom_point(position="jitter",size =3,aes(shape = Type)) + theme_bw()  +
 scale_colour_manual(values=c("red", "#c8a100","red", "#c8a100")) + 
geom_signif(comparisons = list(c("231-Clusters", "231-SingleCells"),
c("MCF-7-Clusters","MCF-7-SingleCells")),map_signif_level = TRUE, textsize=6) + 
ylim(NA, 1)
1622164406(1).jpg

就这

你可能感兴趣的:(ggplot2 + ggsignif画散点图叠加箱线图带t-test)