mf_raster {mapsf} | R Documentation |
Plot a raster object (SpatRaster from terra).
mf_raster(x, expandBB = rep(0, 4), add = FALSE, ...)
x |
a SpatRaster |
expandBB |
fractional values to expand the bounding box with, in each direction (bottom, left, top, right) |
add |
whether to add the layer to an existing plot (TRUE) or not (FALSE). |
... |
bgalpha, smooth, maxcell or other arguments passed to be
passed to
|
No return value, a map is displayed.
if (require("terra")) {
r <- rast(system.file("ex/elev.tif", package = "terra"))
mf_raster(r)
}