spLayer | R Documentation |
Define a new data layer from an object sp.
spLayer(x, ...)
x |
a spatial object as defined in the package sp. |
... |
additional arguments to pass to the function. |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.