mosaic_plot: A wrapper around terra::plot()

View source: R/utils_mosaic.R

mosaic_plotR Documentation

A wrapper around terra::plot()

Description

Plot the values of a SpatRaster

Usage

mosaic_plot(
  mosaic,
  col = custom_palette(c("red", "yellow", "forestgreen"), n = 200),
  smooth = TRUE,
  ...
)

Arguments

mosaic

SpatRaster

col

character vector to specify the colors to use. Defaults to custom_palette(c("red", "yellow", "forestgreen")).

smooth

logical. If TRUE (default) the cell values are smoothed (only if a continuous legend is used).

...

Further arguments passed on to terra::plot().

Value

A NULL object

Examples

if (interactive() && requireNamespace("EBImage")) {
library(pliman)
r <- mosaic_input(system.file("ex/elev.tif", package="terra"))
mosaic_plot(r)
}

pliman documentation built on Aug. 21, 2025, 5:46 p.m.

Related to mosaic_plot in pliman...