[R-sig-Geo] Same color scale
Hadley Wickham
hadley at rice.edu
Tue Nov 22 19:29:50 CET 2011
> - I also used the ggplot, but again, there is a min-color and a max-color for the min and max values (i.e. blue-red). If one ggplot has more sequence than the other one, in both case they will have the blue and red as min and max color but then not the same number of color between those 2. And If I do not set a max-color (or any min and max color) it does not work either.
Just set the limits - e.g. scale_fill_continuous(limits = c(0, 1))
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-sig-Geo
mailing list