meta_capacity: Metapopulation capacity

Description Usage Arguments Value References Examples

View source: R/meta-capacity.r

Description

Metapopulation capacity (Hanski and Ovaskainen 2000) is a relative measure of the ability of a spatially explicit landscape to support a metapopulation of a species. This function implements the modification proposed by Schnell et al. (2013) that includes self colonization.

Usage

1
meta_capacity(x, a, f, ex = 0.5, self = TRUE, patch_mc = FALSE, ...)

Arguments

x

interpatch distance matrix or patch_config object.

a

numeric; patch areas in the same order as the distance matrix. Only used if 'x“ is a distance matrix.

f

function; dispersal kernel function taking a distance, d, and returning the probability density of dispersing that distance.

ex

numeric; extinction-area parameter, where extinction rate is given by E / A^ex for patch size A.

self

logical; whether patches can recolonize themselves, this correction was proposed by Schnell et al. (2013) because the original favours networks of small patches over large contiguous patches

patch_mc

logical; whether to return the patch-level contributions to the metapopulation capacity.

...

additional parameters passed to the dispersal survival function.

Value

The metapopulation capacity or, if patch_mc = TRUE, a list containing the metapopulation capacity (capacity) and the patch contributions (patch_mc).

References

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
d <- matrix(c(0, 2, 4, 2, 0, 3, 4, 3, 0), nrow = 3)
a <- c(1, 1.5, 0.5)
f <- dispersal_negexp(1)
meta_capacity(d, a, f)

r <- raster::raster(nrows = 10, ncols = 10, crs = "+proj=aea")
r[] <- round(runif(raster::ncell(r)) * 0.7)
pc <- patch_config(r, "m")
f <- dispersal_negexp(1 / 100)
meta_capacity(pc, f = f)

mstrimas/metacapa documentation built on Dec. 3, 2019, 3:16 p.m.