Description Usage Arguments Value Examples
View source: R/lotka_volterra_comp.R
Lotka-Volterra 2-Species Competition Model
1 | lotka_volterra_comp(time, init_n1, init_n2, r1, r2, k1, k2, a1, a2)
|
time |
Vector of time points at which to evaluate system |
init_n1 |
Initial abundance of Population 1 |
init_n2 |
Initial abundance of Population 2 |
r1 |
Inherent per-capita growth rate of Population 1 |
r2 |
Inherent per-capita growth rate of Population 2 |
k1 |
Carrying capacity of Population 1 |
k2 |
Carrying capacity of Population 2 |
a1 |
Effect of Population 1 on growth of Population 2 |
a2 |
Effect of Population 2 on growth of Population 1 |
Tidy data frame with three columns:
Time | Same values and units as argument time |
|
Population | One of 'Pop. 1' or 'Pop. 2' | |
Abundance | Abundance of given population at given time | |
1 2 3 | t <- seq(0, 50, 0.1)
lotka_volterra_comp(time = t, init_n1 = 10, init_n2 = 10, r1 = 0.5, r2 = 0.1,
k1 = 100, k2 = 100, a1 = -0.001, a2 = -0.4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.