0

I would like to set the color manually for the ggplot.I want it to be in a rainbow but I'm unable to do. Additionally I want to change the scale value as well. Picture is attached as a reference that what actually I;m looking for.

Can someone please help me to fix this issue?

Here below are my code for ggplot

ggplot(data, aes(x = Timepoint, 
                 color = Cellno,
                 y = scale(Nuclear_Foxm1_Intensity))) + 
geom_histogram(aes(y = ..density..), bins = 256, alpha = 0.5, 
               position="identity") + 
scale_y_continuous(limits = c(-3, 3)) + 
geom_density_2d_filled() + 
ggtitle("Control")

enter image description here

Thank You

Scale and color something like that

neilfws
  • 32,751
  • 5
  • 50
  • 63
Tooba
  • 1
  • 1

0 Answers0