VlnPlot()

2025-07-28  本文已影响0人  LET149

绘制小提琴图

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
上一篇 下一篇

猜你喜欢

热点阅读