sensitivity_map: Create a sensitivity map

Description Usage Arguments Details Value See Also Examples

View source: R/sensitivity_map.R

Description

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

Usage

1
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

σ = |S - m|s.

Value

A RasterLayer of sensitivity values

See Also

cnfa, exposure_map, vulnerability_map

Examples

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

CENFA documentation built on Aug. 16, 2021, 9:06 a.m.