Learn R Programming

pliman (version 3.1.0)

mosaic_hist: A wrapper around terra::hist()

Description

Create a histogram of the values of a SpatRaster.

Usage

mosaic_hist(mosaic, layer, ...)

Value

A NULL object

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().

Examples

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

Run the code above in your browser using DataLab