绘制小提琴图
VlnPlot(object=, features = , group.by =, stack =, flip =)+NoLegend()
stack = : 是否将所有feature联合绘制,T为联合绘制
flip = : 是否将X轴和Y轴进行调换,默认cluster
为 X 轴
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
网友评论