mapRm: Remove objects from a 'map'

View source: R/map.R

mapRmR Documentation

Remove objects from a map

Description

Remove objects from a map

Usage

mapRm(map, layer, ask = TRUE, ...)

## Default S3 method:
mapRm(map = NULL, layer = NULL, ask = TRUE, ...)

Arguments

map

TODO: document this

layer

TODO: document this

ask

TODO: document this

...

TODO: document this

See Also

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()

Examples

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")
}

PredictiveEcology/map documentation built on Nov. 11, 2023, 11:44 a.m.