mapRm | R Documentation |
map
Remove objects from a map
mapRm(map, layer, ask = TRUE, ...)
## S3 method for class 'map'
mapRm(map, layer = NULL, ask = TRUE, ...)
map |
TODO: document this |
layer |
TODO: document this |
ask |
TODO: document this |
... |
TODO: document this |
Other mapMethods:
crs,map-method
,
rasterToMatch,map-method
,
rasters()
,
studyArea()
,
studyAreaName()
Other mapMethods:
crs,map-method
,
rasterToMatch,map-method
,
rasters()
,
studyArea()
,
studyAreaName()
if (require("SpaDES.tools", quietly = TRUE)) {
p <- terra::vect(cbind(-120, 60), crs = "epsg:4326") |>
SpaDES.tools::randomPolygon(area = 1e5) |>
sf::st_as_sf() |>
sf::as_Spatial()
m <- mapAdd(p, layerName = "p")
m
m <- mapRm(m, "p")
m
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.