This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to add color gradient guide to my FeaturePlot?

Hi all,

When I'm using FeaturePlot() for one gene, my graph has the color gradient guide but when I want to plot multi genes, the color gradient guide is missed.

FeaturePlot(seurat.HSC, features ='Ecm1', min.cutoff = 'q10')

enter image description here

vs

FeaturePlot(seurat.HSC, features = c('Ecm1','Gucy1b1','Acta2'), min.cutoff = 'q10', 
            split.by = 'sample'  )

enter image description here

How to solve it? Thanks for any help.

seurat featureplot

1 answer

Hello,

I think the problem is related to split.by, try to use this:

FeaturePlot(seurat.HSC, features = c('Ecm1','Gucy1b1','Acta2'), min.cutoff = 'q10', split.by = "sample") & theme(legend.position = "right")

Best

Also, you can use FeaturePlot_scCustom:

FeaturePlot_scCustom(seurat_object = seurat.HSC, min.cutoff = 'q10', features = c('Ecm1','Gucy1b1','Acta2'), split.by = "sample_id", num_columns = 3)

Log in to answer this question.