mapRm | R Documentation |
map
Remove objects from a map
mapRm(map, layer, ask = TRUE, ...)
## Default S3 method:
mapRm(map = NULL, layer = NULL, ask = TRUE, ...)
map |
TODO: document this |
layer |
TODO: document this |
ask |
TODO: document this |
... |
TODO: document this |
Other mapMethods:
area,map-method
,
crs,map-method
,
rasterToMatch,map-method
,
rasters()
,
studyAreaName()
,
studyArea()
Other mapMethods:
area,map-method
,
crs,map-method
,
rasterToMatch,map-method
,
rasters()
,
studyAreaName()
,
studyArea()
if (require("SpaDES.tools")) {
library(sp)
longLatCRS <- CRS(paste("+init=epsg:4326 +proj=longlat +datum=WGS84",
"+no_defs +ellps=WGS84 +towgs84=0,0,0"))
p <- randomPolygon(SpatialPoints(cbind(-120, 60), proj4string = longLatCRS), area = 1e5)
m <- mapAdd(p, layerName = "p")
mapRm(m, "p")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.