Entering edit mode
22 months ago
Omics data mining
▴
260
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.
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