getJacobianEnergyFlux | R Documentation |
This functions calculates interaction strengths from a resolved energy-flux food web model and uses these values as entries for a Jacobian matrix. The diagonal can be calculated from the model (default), all-zero, or user-defined. This function is an implementation of the equations from the references listed below.
getJacobianEnergyFlux( FM, BM, AE, GE, diagonal = "model", dead = NULL, externals = NULL, MR = NULL, verbose = TRUE, netMatrix = TRUE )
FM |
(required) A named square flowmatrix, source compartments as rows, sink compartments as columns. |
BM |
(required) A named numeric vector with biomasses of all compartments, must be in the same
order as the flow matrix |
AE |
(required) A named numeric vector with assimilation efficiencies of all
compartments, must be in the same order as the flow matrix |
GE |
(required) A named numeric vector with growth efficiencies of all compartments,
must be in the same order as the flow matrix |
diagonal |
(required) Either the string "model" (default), a single value, or a numeric vector.
|
dead |
(optional) List with at most two elements named names and frac containing information on all dead compartments (like detritus and nutrients).
|
externals |
(optional) Character vector with all names of external compartments, i.e. which have no biomass, that have to be removed from the flow matrix before calculations. |
MR |
(optional) Mortality rates for all compartments per unit time (t-1). Default behaviour (MR = NULL) is calculation of mortality rates as (growth - predation)/biomass. Otherwise, you can provide a named numeric vector. |
verbose |
(optional) Default is TRUE. Whether or not to print messages. |
netMatrix |
(optional) Boolean. Default is TRUE: the netMatrix is used to calculate interaction strengths. This is only relevant if there are two food web compartments which act both as prey and predators to one another. |
If MR
is set to NULL, it is calculated from the model as the non-predatory mortality:
production minus predation divided by biomass.
Otherwise MR
can sometimes be extracted from the food web model, for example when
natural death results in a flux from the faunal compartment to a carcass compartment.
Diving the mortality flux by the biomass of the faunal compartment gives the specific
mortality rate per unit time.
Mortality rate can also be calculated as the inverse of the natural lifespan of the species
(per unit time).
This function returns a matrix containing interaction strengths, i.e. the effect of the resources (rows) on the consumers (columns) - for all interactions in the food web.
de Ruiter, P.C., Neutel, A.M., Moore, J.C., 1995. Energetics, Patterns of Interaction Strengths, and Stability in Real Ecosystems. Science. 269, 1257–1260. https://doi.org/10.1126/science.269.5228.1257
Neutel, A.M., Heesterbeek, J.A.P., Ruiter, P.C. De, 2002. Stability in Real Food Webs: Weak Links in Long Loops. Science. 296, 1120–1123. https://doi.org/10.1126/science.1068326
Neutel, A.M., Thorne, M.A.S., 2014. Interaction strengths in balanced carbon cycles and the absence of a relation between ecosystem complexity and stability. Ecol. Lett. 17, 651–661. https://doi.org/10.1111/ele.12266
Moore, J. C., Berlow, E. L., Coleman, D. C., De Ruiter, P. C., Dong, Q., Hastings, A., … Wall, D. H. (2004). Detritus, trophic dynamics and biodiversity. Ecology Letters, 7(7), 584–600. https://doi.org/10.1111/j.1461-0248.2004.00606.x
# Use example food-web model of soil model <- fwmodels::LovinkhoeveCP # Create a Jacobian matrix JM <- getJacobianEnergyFlux( FM = model$FM, BM = model$BM, AE = model$AE, GE = model$GE, diagonal = "model", dead = model$dead, MR = model$MR )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.