[R-sig-Geo] zlim in spplot() ?

Edzer Pebesma edzer.pebesma at uni-muenster.de
Wed Dec 21 15:05:57 CET 2011



On 12/21/2011 02:05 PM, Agustin Lobo wrote:
> Hi!
> I have to plot data for different years in individual plots and want
> to keep the same range. I've tried
>  spplot(worldowlstot2,z="X2005",cuts=3,xlim=c(-180,180),ylim=c(20,90),zlim=c(0,20))
> 
> but it seems that zlim is ignored (no error message, but no effect,
> the bar is from 0 to 8 ).
> 
> Is there any way to set the range for the color display?

library(lattice)
?levelplot

try the cuts argument (zlim is sth that image() is more likely to obey).

> 
> Thanks
> 
> Agus
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list