2022-08-04_featureplot split之后不出现图例怎么办

比如要画某个marker基因的featureplot

DefaultAssay(sample.integrated) <- 'RNA'
FeaturePlot(sample.integrated,features = 'LMNA',reduction = 'tsne')

如果我想要分组画

FeaturePlot(sample.integrated,features = 'LMNA',reduction = 'tsne',split.by = 'group')

这时候会发现图例不见了
添加图例:

FeaturePlot(sample.integrated,features = 'LMNA',reduction = 'tsne',split.by = 'group')& theme(legend.position = "right")

你可能感兴趣的:(2022-08-04_featureplot split之后不出现图例怎么办)