美文网首页
[R代码]单细胞数据画小提琴图

[R代码]单细胞数据画小提琴图

作者: expgene | 来源:发表于2023-11-02 23:12 被阅读0次

探序基因肿瘤研究院 整理

参考:

知乎-scRNA分析| Seurat堆叠小提琴图不满足? 那就ggplot2 堆叠 各种元素

代码:

1.

VlnPlot(Seurat, features = c("CD4","CD8A","CD8B"),

        stack = TRUE,

        sort = TRUE,

        cols = c("red","blue","yellow"),

        group.by ="anno2" , #Seurat数据结构中的meta里的注释细胞的那个列名,Seurat@meta$anno2

        flip = TRUE) +

  theme(legend.position = "none") +

  ggtitle("Identity on x-axis")

相关文章

网友评论

      本文标题:[R代码]单细胞数据画小提琴图

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