How to add color gradient guide to my FeaturePlot?
1
1
Entering edit mode
22 months ago
Zahra ▴ 110

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 • 3.0k views
ADD COMMENT
5
Entering edit mode
22 months ago
Rafael Soler ★ 1.2k

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

ADD COMMENT
0
Entering edit mode

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)

ADD REPLY

Login before adding your answer.

Traffic: 2134 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6