Learn R Programming

epm (version 1.1.4)

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

Value

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

Arguments

...

objects of class epmGrid, RasterLayer SpatRaster or sf objects.

Author

Pascal Title

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.

Examples

Run this code
library(terra)
tamiasEPM

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

getMultiMapRamp(tamiasEPM, ras)
 

Run the code above in your browser using DataLab