[R-sig-Geo] raster::plot() common color scale?

Agustin Lobo alobolistas at gmail.com
Thu Jun 9 15:59:49 CEST 2011


Hi!
I'm doing

par(mfrow=c(2,2))
plot(simr)
plot(simrlisa)
a2 = simr>l$lisamax
plot(l$lisamax)
plot(simr*a2)

where simr, l%lisamax and a2 are raster objects. Is there any way to
get a common color scheme
(i.e., setting common min and max values)?
The color table is the same, but the scaling is independent for each
raster object and cannot be compared.

Thanks

Agus



More information about the R-sig-Geo mailing list