getMultiMapRamp {epm}R Documentation

Extract min and max for multiple epmGrids

Description

Extracts the range of values across a list of input objects for use in plotting

Usage

getMultiMapRamp(...)

Arguments

...

objects of class epmGrid, RasterLayer SpatRaster or sf objects.

Details

If the user would like to plot multiple epmGrid objects with a standardized color ramp, then the returned values from this function can be supplied to plot.epmGrid. Also works with RasterLayer and sf objects. For sf object, only one attribute can be specified.

Value

a numeric vector of length 2: overall min and max value.

Author(s)

Pascal Title

Examples

library(terra)
tamiasEPM

# create a dummy raster for demonstration purposes.
ras <- rast()
values(ras) <- runif(ncell(ras), min = 0, max = 40)

getMultiMapRamp(tamiasEPM, ras)
 

[Package epm version 1.1.2 Index]