美文网首页
ggplot2 + ggsignif画散点图叠加箱线图带t-te

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

作者: 瓶瓶瓶平平 | 来源:发表于2021-05-28 09:13 被阅读0次
    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-te

          本文链接:https://www.haomeiwen.com/subject/kzgqoktx.html