fluxing: generate fluxes

Description Usage Arguments Details Value Author(s) Examples

Description

Creates a valuated graph adjacency matrix from its binary version.

Usage

1
2
fluxing(mat, biomasses = NULL, losses, efficiencies, bioms.prefs = TRUE,
  bioms.losses = TRUE, ef.level = "prey")

Arguments

mat

Network adjacency matrix describing interactions among species. Interactions can be either binary or weighted.

biomasses

Vector of species biomasses.

losses

A vector or an array of species energy losses (excluding consumption).

efficiencies

A vector or an array of conversion efficiencies of species in the adjacency matrix. These values describe the proportion of consumed energy that is converted to biomass of the consumer.

bioms.prefs

Logical - if TRUE, consumer preferences are scaled according to species biomasses.

bioms.losses

Logical - if TRUE, losses are scaled with species biomasses.

ef.level

Set to "prey" if efficiencies are defined by prey, "pred" if they are a property of the predator.

Details

This function computes fluxes in food webs based on an equilibrium hypothesis: for each species, sum of ingoing fluxes (gains from predation) balances the sum of outgoing fluxes. Outgoing fluxes are defined by consumption and the losses argument. Usually losses relate to species metabolic rates and/or natural death rates. For each species i, sum of ingoing fluxes F_i is computed as:

F_{i} = \frac{1}{e_i} (L_i + ∑_j W_{ij}F_j) \quad if \quad \code{ef.level == "pred"}

F_{i} = \frac{L_i + ∑_j W_{ij}F_j}{∑_j W_{ji}e_j} \quad if \quad \code{ef.level == "pred"}

W set the matrix of preferences estimated from mat, according to bioms.prefs. L is the vector depicting sum of losses (scaled or not by biomasses, accordingly to bioms.losses) and e is the vector of species efficiencies.

Value

Returns an adjacency matrix where entries are the computed energy fluxes between consumer species and their respective resources.

Author(s)

Benoit gauzens, benoit.gauzens@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# first compute species per unit biomass metabolic rates using the metabolic theory:
losses = 0.1 * species.level$bodymasses^(-0.25)

# call of the function:
fluxing(species.level$mat, 
       species.level$biomasses, 
       losses, 
       species.level$efficiencies, 
       bioms.pref = TRUE, 
       ef.level = "prey")

fluxweb documentation built on May 2, 2019, 6:49 a.m.