Learn R Programming

CENFA (version 1.1.1)

exposure_map: Create an exposure map

Description

Creates a map of exposure to climate change in a species' habitat from a departure object.

Usage

exposure_map(dep, parallel = FALSE, n, filename = "", ...)

Arguments

dep

Object of class departure

parallel

logical. If TRUE then multiple cores are utilized

n

numeric. Number of cores to use for calculation (optional)

filename

character. Output filename (optional)

...

Additional arguments for file writing as for writeRaster

Value

A RasterLayer of exposure values

Details

The values of the exposure raster are calculated by projecting onto the departure factor d, given by the formula

\(\epsilon\) = Fd.

See Also

departure, sensitivity_map, vulnerability_map

Examples

Run this code
# NOT RUN {
dep <- departure(x = climdat.hist, y = climdat.fut, s.dat = ABPR)
exp.map <- exposure_map(dep)

# }

Run the code above in your browser using DataLab