mosaic_hist: A wrapper around terra::hist()

View source: R/utils_mosaic.R

mosaic_histR Documentation

A wrapper around terra::hist()

Description

Create a histogram of the values of a SpatRaster.

Usage

mosaic_hist(mosaic, layer, ...)

Arguments

mosaic

SpatRaster

layer

positive integer or character to indicate layer numbers (or names). If missing, all layers are used

...

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

Value

A NULL object

Examples

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

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

Related to mosaic_hist in pliman...