Skip to content
Prev 138940 / 398506 Next

How to plot raster obtained from readRAST6 in grey scale?

Uwe Ligges <ligges <at> statistik.tu-dortmund.de> writes:
It is possible that this is a spatial object, like a digital picture, so the
function or method used may have been image(), and the relevant argument was
col=. It would help greatly if the question was rendered in R:

"I have an object X:

str(X, max.level=1, give.attr=FALSE)

which I would like to plot in a greyscale instead of colour:

image(X)

Which arguments to method "image" should I use?"

However, re-phrasing answers the question to ?image and probably then to "Where
are greyscale colours?" then to help.search("grey") so to gray.colors?, and
avoids the posting altogether. 

If the method is spplot in package sp, the same would hold. In any case, for
spatial data (raster is a rather spatial incantation) the R-sig-geo list might
be more suitable.

Roger