[R-sig-Geo] North arrow, scale bar, legend

Roger Bivand Roger.Bivand at nhh.no
Tue Nov 25 20:19:49 CET 2008


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




More information about the R-sig-Geo mailing list