map.new | R Documentation |
Prepare a plotting window suitable for a map
map.new(x,legendRight=FALSE, buffer=0, mar=c(0,0,0,0), ...)
x |
A spatial object from which an extent can be extracted. |
legendRight |
Leave room to the right for the legend produced by plotting a Raster object |
buffer |
passed to |
mar |
see |
... |
Additional arguments passed to |
map.new
initiates a plot intended to contain a map covering the extent of x
,
with no margins.
A list of the graphical parameters prior to calling map.new
Patrick Brown
nldTiles = terra::unwrap(nldTiles)
nldCities = terra::unwrap(nldCities)
oldpar = map.new(nldCities)
plot(nldTiles, add=TRUE)
points(nldCities)
par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.