比如要画某个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")