powered by
Prepare a plotting window suitable for a map
map.new(x,legendRight=FALSE, buffer=0, mar=c(0,0,0,0), ...)
A list of the graphical parameters prior to calling map.new
map.new
A spatial object from which an extent can be extracted.
Leave room to the right for the legend produced by plotting a Raster object
passed to extend to increase the plotting area
extend
see par
par
Additional arguments passed to plot
plot
Patrick Brown
map.new initiates a plot intended to contain a map covering the extent of x, with no margins.
x
nldTiles = terra::unwrap(nldTiles) nldCities = terra::unwrap(nldCities) oldpar = map.new(nldCities) plot(nldTiles, add=TRUE) points(nldCities) par(oldpar)
Run the code above in your browser using DataLab