Skip to content

How can I plot categorical raster (using levelplot?) with a proper legend?

1 message · Oscar Perpiñan

#
Hello,

The levelplot method in the current version of rasterVis is not able to
work with RATs with more than one variable. I have just uploaded to
R-Forge a fix to solve this problem. Besides, levelplot has gained a new
argument (att) to choose which variable you need. Maybe tomorrow this
new version will be built and available to install. Meanwhile you can
build it on your own or use a RAT with only one attribute (for example,
drop the column "class").

Best,

Oscar.

Mikhail Titov <mlt at gmx.us> writes: