Description Usage Arguments Value Examples
A 'food web' object stores the trophic dynamics of a set of potentially interacting species. It is a sub-component of a trophic_dynamics object
1 2 3 4 5 6 7 8 9 | build_food_web(interaction_matrix, ...)
is.food_web(x)
## S3 method for class 'food_web'
print(x, ...)
## S3 method for class 'food_web'
plot(x, ...)
|
interaction_matrix |
a matrix identifying (weighted) trophic links between species pairs (rows eat columns) |
... |
further arguments passed to or from other methods |
x |
an object to print or test as a food_web object |
An object of class food_web
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | library(trophic)
# Construct the food_web object
test_fw <- build_food_web(interaction_matrix = food_web)
# Test if object is of the type 'food_web'
## Not run:
is.food_web(x)
## End(Not run)
# Print information about the 'food_web' object
## Not run:
print(x)
## End(Not run)
# Plot a 'food_web' object
## Not run:
plot(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.