Bart,

Thanks for reporting this. For some reason I had only considered reduction
of the values with zlim, not expansion. Fixed in version 2.0-11 (on R-Forge)

Robert

On Wed, Jul 11, 2012 at 6:23 AM, Bart <bart@njn.nl> wrote:

> hi
>
> I just noted that zlim does adjust the legend but not the colors causing
> the legend to not match the colors.
>
> example:
>
> require(raster)
> par(mfrow=1:2)
> plot(a<-raster(matrix(runif(**100),ncol=10)))
> plot(a, zlim=c(0,10))
>
> This is problem when one tries to create multiple plots with a matching
> legend.
>
> I'm not sure if zlim is suppose to work but i think it should then issue a
> warning or error but not plot something with a wrong legend
>
> Bart
>
> ______________________________**_________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/**listinfo/r-sig-geo<https://stat.ethz.ch/mailman/listinfo/r-sig-geo>
>

	[[alternative HTML version deleted]]

