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
North arrow, scale bar, legend
3 messages · izareis at dpi.inpe.br, Edzer Pebesma, Roger Bivand
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:
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
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Edzer Pebesma Institute for Geoinformatics (ifgi), University of M?nster Weseler Stra?e 253, 48151 M?nster, Germany. Phone: +49 251 8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de/ http://www.springer.com/978-0-387-78170-9 e.pebesma at wwu.de
On Tue, 25 Nov 2008, Edzer Pebesma wrote:
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")
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
might work. -- Edzer izareis at dpi.inpe.br wrote:
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
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no