Dependency {NetIndices}R Documentation

Direct and indirect dependency analysis

Description

Calculates for each component in a flow network the direct+indirect dependency on the other components

Usage

Dependency(Flow=NULL, Tij=t(Flow), 
  Import=NULL, Export=NULL)

Arguments

Flow Network matrix with Flow[i,j] the flow from i (row) to j (column); component positions in rows and columns must be the same; if present, rownames or columnnames denote the compartment names
Tij Network matrix where connectance is from column j to row i; component positions in rows and columns must be the same ; if present, rownames or columnnames denote the compartment names
Import Vector with either the *indices* or the *names* of external compartmens from where flow enters the network; the indices point to the column positions in Tij (and the row positions in Flow)
Export Vector with either the *indices* or the *names* of external compartmens to where flow leaves the network; the indices point to the row positions in Tij (and the column positions in Flow)

Value

A matrix with dependency of component i on component j

Author(s)

Karline Soetaert <k.soetaert@nioo.knaw.nl>, Julius Kipyegon Kones<jkones@uonbi.ac.ke>

Examples

# The takapoto atoll network
Dependency(Takapoto,Import ="CO2",
           Export=c("CO2","Sedimentation","Grazing"))

# making "Bacteria" a "primary food source"  
TAK <- Takapoto
TAK[,"Bacteria"]<-c(0,0,0,0,0,0,1,0)
# first two columns
(DD<-Dependency(TAK,Import =c("CO2","DOC"),
         Export=c("CO2","DOC","Sedimentation","Grazing")))
barplot(t(DD[3:nrow(DD),1:2]),beside=TRUE,ylab="-",
       legend=c("Phytoplankton","Bacteria"),
       main="dependency on (primary) food sources")

[Package NetIndices version 1.2 Index]