Entering edit mode
6 months ago
solo.albif
•
0
Hi,
I am using Seurat to create a UMAP plot with DimPlot, three spatial plots with ImageDimPlot and a heatmap plot with DoHeatmap:
I would like to keep the colors of the clusters consistent between plots but I have been so far unable to do that using the cols parameter of DimPlot and ImageDimPlot. I know Seurat is using ggplot2 to print the plots, is there a way I can leverage ggplot2 to assign colors to the clusters?
Thank you very much
Wow, this is incredibly easy and straightforward. I tried a lot of different things that did not work but I was close, my mistake was using a list instead of a vector.
Thank you very much!