mf_raster {mapsf}R Documentation

Plot a raster

Description

Plot a raster object (SpatRaster from terra).

Usage

mf_raster(x, expandBB = rep(0, 4), add = FALSE, ...)

Arguments

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 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)
}

[Package mapsf version 0.7.1 Index]