fig4.1: Stability of multi-variable models

View source: R/fig4.1.R

fig4.1R Documentation

Stability of multi-variable models

Description

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

Usage

fig4.1(stability = "stable", viewcode = FALSE)

Arguments

stability

character string that is either "stable" or "unstable"

viewcode

TRUE or FALSE (default) indicating whether to print the function code

Value

a list object containing jacobian matrix and dominant eigenvalue, and generates either panel of figure 4.1

Examples

# 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)


tessington/quantecol documentation built on June 1, 2025, 9:06 p.m.