Climatic vulnerability
Calculates the climatic vulnerability of a species using a cnfa
and
departure
object.
vulnerability( cnfa, dep, method = "geometric", w, parallel = FALSE, n = 1, filename = "", ... ) ## S4 method for signature 'cnfa,departure' vulnerability( cnfa, dep, method = "geometric", w, parallel = FALSE, n = 1, filename = "", ... )
cnfa |
Object of class |
dep |
Object of class |
method |
character. What type of mean should be used to combine sensitivity and exposure. Choices are "arithmetic" and "geometric" |
w |
numeric. Optional vector of length two specifying the relative weights of sensitivity and exposure. See Details |
parallel |
logical. If |
n |
numeric. Number of cores to use for calculation |
filename |
character. Output filename (optional) |
... |
Additional arguments for file writing as for |
The values of the vulnerability raster are calculated by combining the sensitivity
σ and the exposure ε. If method = "arithmetic"
,
they will be combined as
ν = (w_1σ + w_2ε) / (∑_i w_i).
If method = "geometric"
, they will be combined as
ν = √(σ * ε).
Returns an S4 object of class vulnerability
with the following slots:
Original function call
Vulnerability factor. Vector of length p that describes the amount of vulnerability in each climate variable
Magnitude of the vulnerability factor
RasterLayer of climate vulnerability
Raster layer of weights used for departure calculation
Rinnan, D. Scott and Lawler, Joshua. Climate-niche factor analysis: a spatial approach to quantifying species vulnerability to climate change. Ecography (2019): doi:10.1111/ecog.03937.
## Not run: mod1 <- cnfa(x = climdat.hist, s.dat = ABPR, field = "CODE") dep <- departure(x = climdat.hist, y = climdat.fut, s.dat = ABPR) vuln <- vulnerability(cnfa = mod1, dep = dep) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.