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

library(pliman)
r <- mosaic_input(system.file("ex/elev.tif", package="terra"))
mosaic_hist(r)

TiagoOlivoto/pliman documentation built on Sept. 14, 2024, 2:24 a.m.