sensitivity_map: Create a sensitivity map

View source: R/sensitivity_map.R

sensitivity_mapR Documentation

Create a sensitivity map

Description

Creates a sensitivity map of species habitat from a cnfa object.

Usage

sensitivity_map(cnfa, parallel = FALSE, n = 1, filename = "", ...)

Arguments

cnfa

Object of class cnfa

parallel

logical. If TRUE then multiple cores are utilized

n

numeric. Number of cores to use for calculation

filename

character. Output filename (optional)

...

Additional arguments for file writing as for writeRaster

Details

The values of the sensitivity raster are calculated by centering the habitat's climate data around the marginality factor m and projecting onto the sensitivity factor s, given by the formula

\sigma = |S - m|s.

Value

A RasterLayer of sensitivity values

See Also

cnfa, exposure_map, vulnerability_map

Examples

mod1 <- cnfa(x = climdat.hist, s.dat = ABPR, field = "CODE")
sens.map <- sensitivity_map(mod1)


rinnan/CENFA documentation built on July 19, 2023, 12:58 p.m.