[R-sig-Geo] plotRGB and graphical parameters

Hanna Meyer Meyerha at students.uni-marburg.de
Tue Mar 19 17:25:17 CET 2013


Hello all,

I tried to plot a raster with plotRGB and realized that some of the
graphical parameters seem to be ignored.

for example:
b <- brick(system.file("external/rlogo.grd", package="raster"))
plotRGB(b, 3, 2, 1,axes=T,las=0,cex.axis=2,main="test")

in this way las,cex.axis and main are ignored although graphical
parameters could be used according to the plotRGB help.
Some of the ignored parameters can be set if par is set before the plot command:

par(las=2,cex.axis=2)
plotRGB(b, 3, 2, 1,axes=T)
title(main="Test")

However it doesn't work for las=0 because the labels are still not
parallel to the yaxis. Further, somehow for some other rasters
cex.axis is ignored even in this way.
Does anyone knows the problem and has an idea how to overcome this?

Many thanks
Hanna



More information about the R-sig-Geo mailing list