Description Usage Arguments Value Examples
A 'trophic dynamics' object stores the trophic dynamics of a set of potentially interacting species.
1 2 3 4 5 6 7 8 9 10 | build_trophic_dynamics(food_web, efficiency_matrix = NULL,
dominance_matrix = NULL, ...)
is.trophic_dynamics(x)
## S3 method for class 'trophic_dynamics'
print(x, ...)
## S3 method for class 'trophic_dynamics'
plot(x, ...)
|
food_web |
a food_web object identifying (weighted) trophic links between species pairs |
efficiency_matrix |
an efficiency_matrix object storing the efficiency of energy conversion between all pairs of species |
dominance_matrix |
a dominance_matrix object identifying the relative dominance of a species over other species feeding off the same resource |
... |
further arguments passed to or from other methods |
x |
an object to print or test as a trophic_dynamics object |
An object of class trophic_dynamics
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 27 28 29 30 31 32 33 34 35 36 37 38 | library(trophic)
# Construct the component objects
test_fw <- build_food_web(interaction_matrix = food_web)
test_efficiency_matrix <- build_efficiency_matrix(efficiency_mean = efficiency_mean,
efficiency_sd = 0.01)
test_dominance <- build_dominance_matrix(dominance = dominance_matrix)
# Construct the trophic_dynamics object
test_trophic_dynamics <- build_trophic_dynamics(food_web = test_fw,
efficiency_matrix = test_efficiency_matrix,
dominance_matrix = test_dominance)
# Construct a trophic_dynamics object with two food webs
test_trophic_dynamics <- build_trophic_dynamics(food_web = list(test_fw, test_fw),
efficiency_matrix = test_efficiency_matrix,
dominance_matrix = test_dominance)
# Test if object is of the type 'trophic_dynamics'
## Not run:
is.trophic_dynamics(x)
## End(Not run)
# Print information about the 'trophic_dynamics' object
## Not run:
print(x)
## End(Not run)
# Plot a 'trophic_dynamics' 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.