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
problem plot raster objects
2 messages · Carsten Neumann, Robert J. Hijmans
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110728/31bf7725/attachment.pl>