Learn R Programming

CENFA (version 1.1.1)

sensitivity_map: 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

Value

A RasterLayer of sensitivity values

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.

See Also

cnfa, exposure_map, vulnerability_map

Examples

Run this code
# NOT RUN {
mod1 <- cnfa(x = climdat.hist, s.dat = ABPR, field = "CODE")
sens.map <- sensitivity_map(mod1)

# }

Run the code above in your browser using DataLab