spLayer: Define a Data Layer

Description Usage Arguments Examples

View source: R/splayer.R

Description

Define a new data layer from an object sp.

Usage

1

Arguments

x

a spatial object as defined in the package sp.

...

additional arguments to pass to the function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
 #POINTS
 data(velov)
 vv <- spLayer(velov, stroke=F, popup=velov$NAME)

 #POLYGONS
 data(campsites)
 gcol <- rev(heat.colors(5))
 gcut <- cut(mapdep$N.CAMPSITES, breaks=c(-1, 20, 40, 60, 80, 1000))
 cs <- spLayer(campsites, fill.col=as.numeric(gcut))
 bm1 <- basemap("mapquest.map")

 writeMap(bm1, cs, vv)

## End(Not run)

rleafmap documentation built on May 2, 2019, 3:43 p.m.