change color and scale in SpatialFeaturePlot
0
0
Entering edit mode
22 months ago

Hello everyone

I am using seurat R package for the analysis of spatial transcriptome data. For visualization, I used SpatialFeaturePlot for the specific set of genes and tried to change color by adding scale_fill_continuous as suggested in the github https://github.com/satijalab/seurat/issues/3698 . But nothing works for me.

 p <- SpatialFeaturePlot(d,  features = c("Lyz1"),  pt.size.factor = 1.5, ncol = 1)  
 p + ggplot2::scale_fill_continuous(limits = c(0.0,10.0),, breaks = c(0.0, 5.0, 1.0))

I would appreciate all suggestions.

clustering Seurat spatial-transcriptome • 2.2k views
ADD COMMENT
0
Entering edit mode

They aren't changing the colors.. they are changing the range of the gradient.

Try reading into ggplot2 customization: https://ggplot2.tidyverse.org/reference/scale_manual.html

ADD REPLY

Login before adding your answer.

Traffic: 1620 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