mapRm: Remove objects from a 'map'

Description Usage Arguments See Also Examples

View source: R/map.R

Description

Remove objects from a map

Usage

1
2
3
4
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

1
2
3
4
5
6
7
8
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 Aug. 9, 2019, 1:39 a.m.