plotweb {bipartite} | R Documentation |
A two dimensional matrix is plotted as a bipartite graph.
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)
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 prey. |
method |
Default method is cca, which leads to as few crossings of interactions as possible. The other option is normal, 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 up, down, both and no, default is no, 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 method="cca". Defaults to NULL , where the sequence remains as given or is determined by the CCA internally. |
Returns a window with a bipartite graph of a foodweb.
Bernd Gruber bernd.gruber@ufz.de
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
For a different plot of foodwebs see visweb
data(Safariland) plotweb(Safariland)