[R-sig-Geo] fix color scale
Matthew Landis
landis at isciences.com
Fri Oct 29 17:12:14 CEST 2010
Peter,
is it more complicated than simply specifying the colors and breaks?
e.g.
zbreaks <- c(seq(-100, 100, length = 10)) # or any other sequence of breaks
zcol <- heat.colors(length(zbreaks) - 1) # or any other color
palette, e.g. from colorspace or RColorBrewer
for( i in 1:maps ){
image(z = maps[i], breaks = zbreaks, col = zcol) # image needs x
and y too, omitted for simplicity
}
Matt
On 10/28/2010 3:12 PM, Peter Larson wrote:
> I want them to all represent the same color scale. Is there any way to
> fix the color scale so that it is the same for all the plots?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew Landis, Ph.D.
Research Scientist
ISciences, LLC
61 Main St. Suite 200
Burlington VT 05401
802.864.2999
~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the R-sig-Geo
mailing list