Skip to content

North arrow, scale bar, legend

3 messages · izareis at dpi.inpe.br, Edzer Pebesma, Roger Bivand

#
Hi,

I did a kernel map using Script R:

image (kernel2d  
(casos.spp,contorno.poa,h0=7000,nx=250,ny=250),add=TRUE,col=terrain.colors  
(20))

And I need to put in this map legend, north arrow and scale bar.

I tried some scripts but I fail to do.
Thanks
#
The r-spatial web site http://r-spatial.sourceforge.net/ has a graph
gallery; I think it only works for spplot which takes data in sp
classes. You could us it by coercing your objects to it as

library(maptools)
as(casos.spp, "SpatialPointsDataFrame")

might work.
--
Edzer
izareis at dpi.inpe.br wrote:

  
    
#
On Tue, 25 Nov 2008, Edzer Pebesma wrote:

            
Or the wrapper spkernel2d, in the splancs package. Give it a GridTopology 
to get a vector back to make a SpatialGridDataFrame. See the example on 
the help page.

Roger