View source: R/lotkaVolterra.R
lotkaVolterra | R Documentation |
Simulate the time dynamics of the Lotka-Volterra model, and recreate figure 4.8
lotkaVolterra(perturb = 1.05, viewcode = FALSE)
perturb |
is a multiplier that is used to perturb the model away from equilibrium. The default 1.05 perturbs by 5 percent away from equilibrium |
viewcode |
TRUE or FALSE (default) indicating whether to print the function code |
a list containing the jacobian matrix and dominant eigenvalue, and creates figure 4.8
# Recreate figure 4.8 exactly
lotkaVolterra(perturb = 1.05)
# create a larger initial perturbation away from equilibrim
lotkaVolterra(perturb = 1.25)
# View the code
lotkaVolterra(viewcode = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.