fig4.1 | R Documentation |
This function uses a continuous-time lotka-volterra competition model to introduce the concept of stability, how to use the Adams-Bashford method to simulate a model with differential equations, and the calculation of Jacobian matrices and dominant eigenvalue. The user can ask for a "stable" model configuration or an "unstable" model configuration
fig4.1(stability = "stable", viewcode = FALSE)
stability |
character string that is either "stable" or "unstable" |
viewcode |
TRUE or FALSE (default) indicating whether to print the function code |
a list object containing jacobian matrix and dominant eigenvalue, and generates either panel of figure 4.1
# generate plot with a stable model
fig4.1("stable")
# generate a plot with an unstable model
fig4.1("unstable")
# assign output to an object and view eigenvalue
output <- fig4.1("unstable")
output$eigenvalue
#view commands
fig4.1(viewcode = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.