VlnPlot()

作者: LET149 | 来源:发表于2025-07-28 00:33 被阅读0次

绘制小提琴图

VlnPlot(object=, features = , group.by =, stack =, flip =)+NoLegend()

stack = : 是否将所有feature联合绘制,T为联合绘制
flip = : 是否将X轴和Y轴进行调换,默认clusterX

1. 绘制基本小提琴图

2. 绘制联合小提琴图

2.1 绘制方法一

VlnPlot(object_used, features = Gene_order, group.by = 'Celltype_6', stack = T, flip = F)+NoLegend()

此时行为基因,列为cluster


图片.png

2.2 绘制方法二

VlnPlot(object_used, features = Gene_order, group.by = 'Celltype_6', stack = T, flip = T)+NoLegend()

此时行为cluster,列为基因


图片.png

相关文章

网友评论

      本文标题:VlnPlot()

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