visweb {bipartite} | R Documentation |
this function draws a foodweb as a grid using a matrix. colnames and rownames are used as labels and entries in the matrix are visualized by text and colours
visweb(web, type="nested", prednames=TRUE, preynames=TRUE, labsize=1, plotsize=12, square="interaction", text="compartment", frame=NULL, textsize=1, textcol="red", pred.lablength=NULL, prey.lablength, clear=TRUE )
web |
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. |
type |
type changes the sorting of rows and coloumns of the web and can be nested : (sorted by row/colSums) diagonal: (highest number of interactions appear along the diagonal, good for showing compartments) none : (as is) |
prednames |
labels can be switched of by prednames=F |
preynames |
labels can be switched of by preynames=F |
labsize |
factor for size of labels |
plotsize |
size of plot (length of width or height), depending on the dimension of the web in cm, default is 12 cm. |
square |
square is used to indicate number of interactions and belonging to compartments by coloured grid cells interaction: (level of grey indicates the number of intercation, white means no interaction) compartment: (level of grey indicates belonging to the same compartment) black : (black grid cells if number of interaction is bigger than one) none : (no coloured squares are drawn) |
text |
number of interactions or belonging are plotted into each grid cell interaction: (number of interactions are drawn) compartment: (belonging to same compartment indicated by capitel Letters) none : (no text is shown) |
frame |
a frame is drawn around each compartment (frame=T), best used with type=“diagonal” |
textsize |
factor for size of text in squares, default=1 |
textcol |
color of text in grid cells, default =“red” |
pred.lablength |
length of predators (upper) labels that should be displayed |
prey.lablength |
length of prey (lower) labels that should be displayed |
clear |
delete species with no interactions (compulsory done for “nested” and “diagonal”) |
A plot window with appropriate size according to the dimensions of the web.
Bernd Gruber
... have to find appropriate ones
For a different plot on foodweb see plotweb
data(Safariland) visweb(Safariland) visweb(Safariland, type="diagonal", square="compartment", text="none", frame=TRUE)