Learn R Programming

bipartite (version 0.74)

plotweb: Visualize a bipartite interaction matrix (e.g. a foodweb)

Description

A two dimensional matrix is plotted as a bipartite graph.

Usage

plotweb(web, method = "cca", empty = TRUE, labsize = 1, ybig = 1,
    y_width = 0.1, spacing = 0.05, arrow="no", col.interaction="grey80",
    col.pred = "grey10", col.prey="grey10", lab.space=1,
    lablength = NULL, sequence=NULL, low.abun=NULL, low.abun.col="green", 
    high.abun=NULL, high.abun.col="red")

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
method
Default method is , which leads to as few crossings of interactions as possible. The other option is , which leaves order as given by the matrix.
empty
logical; should empty columns or empty rows be omitted from plotting; defaults to true
labsize
factor for size of labels, default is 1
ybig
vertical distance between upper and lower boxes, default is 1
y_width
width of upper and lower boxes, default is 0.1
spacing
horizonatal distance between upper and lower boxes, default is 0.05
arrow
display type of connection between upper and lower boxes, options are , , and , default is , which is a polygonal connection between boxes.
col.interaction
color of interaction, default is grey80.
col.pred
color of upper boxes, default is grey10.
col.prey
color of lower boxes, default is grey10.
lab.space
sometimes it is neccessary to add additional space for labels below und above of the boxes, so all labes are shown, default is 1.
lablength
number of characters of labels that should be plotted. If zero no labels are shown, default is NULL which plots the complete labels.
sequence
list of two with two names vectors: seq.pred and seq.prey, which specify the order in which species are plotted. Cannot be set for . Defaults to NULL, where the sequence remains as given
low.abun
Vector with independent abundance estimates for the lower trophic level, NULL if none exists.
low.abun.col
Colour for depicting the abundance estimates for the lower trophic level; defaults to green.
high.abun
Vector with independent abundance estimates for the higher trophic level, NULL if none exists.
high.abun.col
Colour for depicting the abundance estimates for the lower trophic level; defaults to red.

Value

  • Returns a window with a bipartite graph of a foodweb.

encoding

latin1

References

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

See Also

For a different plot of foodwebs see visweb

Examples

Run this code
data(Safariland)
plotweb(Safariland)

Run the code above in your browser using DataLab