[R-sig-Geo] plot raster map

Fabrizio Diotri fisholo at gmail.com
Wed Apr 6 15:49:03 CEST 2011


Hi to everybody,
I'm new to this list.
I load a raster map in R thanks to spgrass6 package: no problem.
I would like to plot it: with image command no problem.

The problem is that I would like to mantain original map colours.
My map is catgorized and in particular:
category     red  green  blue
           1    181     237   239
           2    115      181  231
           3     29      133  223
           4     28        69  183
           5       7         7   144
           6    229     229       0
           7    255     255    255
Is there a way to plot the map with this colours?

Thanks in advance for all reply

fabrizio



More information about the R-sig-Geo mailing list