[R-sig-Geo] How can I plot categorical raster (using levelplot?) with a proper legend?

Mikhail Titov mlt at gmx.us
Wed May 1 01:47:45 CEST 2013


On Tue, Apr 30, 2013 at  6:20 PM, Oscar Perpiñán Lamigueiro <oscar.perpinan at gmail.com> wrote:
> 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").

Thanks a lot! Dropping "Count" did the trick. I did not think about
dropping a column though I was wondering if it was expected to handle
"Count" in a smart way on its own.

-- 
Mikhail



More information about the R-sig-Geo mailing list