Carsten,

I am re-implementing plot(raster), using the rasterImage function. I'll fix
the problems with 'zlim' and 'at'. For now, you can use the old version of
the plot function by using the argument 'oldstyle=T'

plot(x, zlim=c(10,40), oldstyle=T)

Robert

On Wed, Jul 27, 2011 at 5:28 PM, Carsten Neumann <carstennh@aol.com> wrote:

> Dear all,
>
> there seems to be a problem ploting RasterLayer objects with plot(). After
> updating to new raster version plot did not take "zlim" argument and the
> "at" argument when passing "breaks" and "axis.args" together.
>
> The error message:
>
> ##############################**##############################**##
> brk=c(0,0.25,0.6,0.8,1)
> plot(ndvi, col=vi.palette(4), breaks=brk, legend.shrink = 0.8,
> axis.args=list(at=c(0.15,0.45,**0.7,0.9), labels=c("Sa.","Sen.","Gra.","**
> Wal.")),
> zlim=c(0,1), main="Aggregierung", legend.width=1.2)
> ##############################**##############################**##
>
> Error in axis(side = 4, mgp = c(3, 1, 0), las = 2, at = c(0, 0.25, 0.6,  :
>  formal Argument "at" matches to several given Arguments
> Zusätzlich: Warnmeldungen:
> 1: In plot.window(...) : "zlim" is no Grafikparameter
> 2: In plot.xy(xy, type, ...) : "zlim" is no Grafikparameter
> 3: In axis(side = side, at = at, labels = labels, ...) :
>  "zlim" is no  Grafikparameter
> 4: In axis(side = side, at = at, labels = labels, ...) :
>  "zlim" is no Grafikparameter
> 5: In box(...) : "zlim" is no Grafikparameter
> 6: In title(...) : "zlim" isno  Grafikparameter
>
> Normally plot() with raster objects accepts arguments from image.plot() The
> code above works for older raster versions.
>
> Very great thanks for any help.
>
> Carsten
>

	[[alternative HTML version deleted]]

