Learn R Programming

bipartite (version 0.7)

networklevel: Analysis of bipartite webs at the level of the entire network

Description

Calculates a variety of indices and values for a bipartite network.

Usage

networklevel(web, index="ALL", ISAmethod="Bluethgen", SAmethod = "Bluethgen",
    extinctmethod = "r", nrep = 100, plot.it.extinction = FALSE, plot.it.dd=FALSE,
    CCfun=median, dist="horn", normalise=TRUE)

Arguments

web
Web is a matrix representing the interactions observed between higher trophic level species (columns) and lower trophic level species (rows). Usually this will be number of pollinators on each species of plants or number of parasitoids on each species of
index
One or more of the following (exact match only!):number of species, links per species, connectance, linkage density,web asymmetry, number of compartments
ISAmethod
Method to use for calculating interaction strength (= dependence) asymmetry; original by Bascompte is biased for singletons and few interactions (range 0 to infty); Bluethgen (default) excludes singletons and corre
SAmethod
Which method to use to calculate the specification asymmetry: mean of log-transformed dependencies (log) or Bl�thgen's abundance-weighted mean (default); see Bl�thgen et al. (2007).
extinctmethod
nrep
Number of replicates for the extinction sequence analysis.
plot.it.extinction
logical; plot the extinction sequence graph; defaults to FALSE.
plot.it.dd
logical; plot the degree distribution fits?; defaults to FALSE.
CCfun
Method to use when calculating the clustering coefficient. Originally proposed as mean of cluster coefficients for each node. Defaults to median, because cluster coefficients are strongly skewed.
dist
Distance metric to be used to calculate niche overlap; defaults to Horn's index, which is the recommendation of Krebs (Ecological Methodology); for other options see vegdist in package vegan.
normalise
Logical; shall the C-score and togetherness metrics be normalised to a range of 0 to 1? Defaults to TRUE.

Value

  • Depending on the selected indices, some or all of the below:
  • number of higher trophic speciesNumber of species in the higher trophic level, i.e. ncol(web).
  • number of lower trophic speciesNumber of species in the lower trophic level, i.e. nrow(web).
  • links per speciesMean number of links per species (qualitative): sum of links divided by number of species.
  • connectanceRealised proportion of possible links (Dunne et al. 2002): sum of links divided by number of cells in the matrix (= number of higher times number of lower trophic level species). This is the standardised number of species combinations often used in co-occurrence analyses (Gotelli & Graves 1996)
  • linkage densityMean number of interactions per species (quantitative); see Tylianakis et al. (2007).
  • web asymmetryBalance between numbers in the two levels: positive numbers indicate more lower-trophic level species, negative more higher-trophic level species; implemented as (nrow(web)-ncol(web))/sum(dim(web)); web asymmetry is a null-model for what one might expect in dependence asymmetry: see Bl�thgen et al. (2007).
  • number of compartmentsCompartments are sub-sets of the web which are not connected (through either higher or lower trophic level) to another compartment. Mathematically, they are Jordan blocks, but this implementation is rule-based (and fast). They are also nicely visualised in the visweb function.
  • generalityEffective mean number of prey per predator; see Tylianakis et al. (2007).
  • vulnerabilityEffective mean number of predator per prey; see Tylianakis et al. (2007).
  • interaction evennessShannon's evenness for the web entries, treating zeros as no data.
  • Alatalo interaction evennessA different measure for web entry evenness, as proposed by M�ller et al. (1999).
  • compartment diversity C.D.Shannon's diversity index across compartment sizes (i.e. number of participants); see Tylianakis et al. (2007).
  • cluster coefficientThe CC for a network is the average CC of its members. CC for each node, in turn, is simply the number of realised links devided by the number of possible links. Introduced by Watts & Strogatz (1998) and described in Wikipedia under http://en.wikipedia.org/w/index.php?title=Clustering_coefficient.
  • H2H2' is a network-level measure of specialisation. It ranges between 0 (no specialisation) and 1 (complete specialisation). H2' is a measure of discrimination, i.e. calculated in comparison of no specialisation (see H2fun for details. To avoid confusion of keys (apostrophe vs. accent), we call the H2' only H2 here.
  • dependence asymmetryExplaining dependence asymmetry will require more space than just a few lines. In essence, it is also a measure of specialisation, across both trophic levels. Proposed by Bascompte et al. (2006) and critiqued and alterations proposed by Bl�thgen et al. (2007). The latter also show that dependence asymmetry can be almost entirely explained by web asymmetry (see above). Positive values (only possible of DAmethod="Bluethgen") indicate higher dependence in the higher trophic level.
  • specialisation asymmetryAsymmetry (higher vs. lower trophic level) of specialisation now based on d' (see dfun), which is insensitive to the dimensions of the web. Again, two options of calculation are available: the one proposed by Bl�thgen et al. (2007), where they weight the specialisation value for each species by its abundance (SAmethod="Bluethgen") or where d'-values are log-transformed (argueing that d'-values are indeed log-normally distributed: SAmethod="log"). Since the mean d-value for the lower trophic level is subtracted from that of the higher, positive values indicate a higher specialisation of the higher trophic level.
  • extinction slope higher trophic levelSlope of the secondary extinction sequence in the higher trophic level, following extermination of species in the lower trophic level; see details.
  • extinction slope lower trophic levelSlope of the secondary extinction sequence in the lower trophic level, following extermination of species in the higher trophic level; see details.
  • degree distributionCoefficients and fits for three different functions to degree distributions: exponential, power law and truncated power law. See degreedistr for details and references.
  • niche overlapMean similarity in interaction pattern between species of the same trophic level, calculated by default as Horn's index. Values near 0 indicate no common use of niches, 1 indicates perfect niche overlap. (In how far it makes sense for hosts of predators to call their commonness in enemies niche overlap is a different issue. There are people calling predators negative resources (couldn't be asked to look up the reference). I would probably rather call it similarity in predators.)
  • mean number of shared hostsThe simplest measure of co-occurrence and hence similarity in host preferences; based on Roberts & Stone (1990) and Stone & Roberts (1992).
  • togethernessMean number of co-occupancies across all species-host-combinations; the whole matrix is scanned for submatrices of the form c(0,0,1,1), representing perfect matches of co-presences and co-absences. These are counted for each pairwise species combination, and averaged. Based on Stone & Roberts (1992).
  • C-scoreMean (normalised) number of checkerboard combinations across all higher trophic level species. Values close to 1 indicate that there is evidence for disaggregation, e.g.~through competition. Value close to 0 indicate aggregation of species (i.e.~no repelling forces between species). See Stone and Roberts (1990) for details.
  • V-ratioVariance-ratio of species numbers to individual numbers within species for the higher trophic level. Values larger than 1 indicate positive aggregation, values between 0 and 1 indicate disaggregation of species. See Schluter (1984) for details.
  • nestednessNestedness-temperature of the matrix. For details see nestedness and Rodr�guez-Giron�s & Santamaria (2002). Notice that the function nestedness, as called by networklevel, does not calculate any null model, simply because it is too computer-intensive. If you are interested in the different null models, please use the function nestedness directly.

encoding

latin1

Details

This function implements a variety of the many (and still procreating) indices describing network topography. Some are embaracingly simple (such as number of species in each trophic level or the number of links (= non-zero cells) in the web). Others are variations on Shannon's diversity index applied to within column or within rows. Only extinction slope is newly implemented here, and hence described in a bit more detail. Extinction slope works on a repeated random sequence of species extinctions (within one trophic level), and calculates the number of secondary extinctions (in the other level). These values are then averaged (over the runs) and plotted against the number of species exterminated. The proportion still recent (on the y-axis) regressed against the proportion exterminated (on the x-axis) is hence standardised to values between 0 and 1 each. Through this plot, a hyperbolic regression is fitted, and the slope of this regression line is returned as an index of extinction sensitivity. The larger the slope, the later the extinction takes its toll on the other trophic level, and hence the higher the redundancy in the trophic level under consideration. Using also returns the graphs (set history to recording in the plotting window). Changing the to abundance will always result in the same sequence (by increasing abundance) and hence does not require replication. Most indices are straightforward, one-line formulae; some, such as H2', also require a re-arranging of the matrix; and one, secondary extinction slope, internally requires iterative runs, making the function relatively slow. If you are not interested in the secondary extinction slopes, simply set to make it much faster.

References

Bascompte, J., Jordano, P. and Olesen, J. M. 2006 Asymmetric coevolutionary networks facilitate biodiversity maintenance. Science 312, 431--433 Bl�thgen, N., Menzel, F., Hovestadt, T., Fiala, B. and Bl�thgen N. 2007 Specialization, constraints and conflicting interests in mutualistic networks. Current Biology 17, 1--6 Dunne, J. A., R. J. Williams, and N. D. Martinez. 2002 Food-web structure and network theory: the role of connectance and size. Proceedings of the National Academy of Science USA 99, 12917--12922 Gotelli, N. J., and G. R. Graves. 1996 Null Models in Ecology. Smithsonian Institution Press, Washington D.C. Memmott, J., Waser, N. M. and Price M. V. 2004 Tolerance of pollination networks to species extinctions. Proceedings of the Royal Society B 271, 2605--2611 M�ller, C. B., Adriaanse, I. C. T., Belshaw, R. and Godfray, H. C. J. 1999 The structure of an aphid-parasitoid community. Journal of Animal Ecology 68, 346--370 Roberts, A. and Stone, L. 1990 Island-sharing by archipelago species. Oecologia 83, 560--567 Rodr�guez-Giron�s M.A., and Santamar�a L. 2006. A new algorithm to calculate the nestedness temperature of presence-absence matrices. Journal of Biogeography 33, 924--935 Schluter, D. 1984 A variance test for detecting species associations, with some example applications. Ecology 65, 998-1005. Stone, L. and Roberts, A. 1990 The checkerboard score and species distributions. Oecologia 85, 74--79. Stone, L. and Roberts, A. 1992 Competitive exclusion, or species aggregation? An aid in deciding. Oecologia 91, 419--424 Tylianakis, J. M., Tscharntke, T. and Lewis, O. T. 2007 Habitat modification alters the structure of tropical host-parasitoid food webs. Nature 445, 202--205 Watts, D. J. and Strogatz, S. 1998 Collective dynamics of small-world networks. Nature 393, 440--442

See Also

Some functions are implemented separately: H2fun, second.extinct, degreedistr, C.score and V.ratio

Examples

Run this code
data(Safariland)
networklevel(Safariland)

Run the code above in your browser using DataLab