Skip to content
Prev 10492 / 29559 Next

Multiple legends in spplot

On Wed, 22 Dec 2010 12:01:50 +0100, Edzer Pebesma wrote:

            
Edzer,

Thank you, working on implementing this right now.

I was unsure of what was going on with the call to SpatialPolygons2Grob()
as mapLegendGrob(obj, ...) supposedly takes any object of class extending
Spatial-class. I didn't even think to check the class of
layout.north.arrow(), used in the example I was working from. I just
checked and found that it works because layout.north.arrow() is of class
SpatialPolygons!

Thanks again for your generous assistance.

--Lee

Lee Hachadoorian
PhD Student, Geography
Program in Earth & Environmental Sciences 
CUNY Graduate Center