Plot a raster object (SpatRaster from terra).

mf_raster(x, add = FALSE, ...)

Arguments

x

a SpatRaster

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 plotRGB or plot

Value

No return value, a map is displayed.

Examples

if (require("terra")) {
  r <- rast(system.file("ex/elev.tif", package = "terra"))
  mf_raster(r)
}
#> Loading required package: terra
#> terra 1.6.3