View source: R/biotic_resource_competition.R
run_biotic_comp_model | R Documentation |
Run a model of competition for a biotic resource
run_biotic_comp_model(
time = seq(0, 10),
init = c(P1 = 25, P2 = 25, H = 30),
params = c(r = 0.2, q = 0.0066, a1 = 0.02, T_h1 = 0.1, e1 = 0.4, d1 = 0.1, a2 = 0.02,
T_h2 = 0.1, e2 = 0.39, d2 = 0.1)
)
time |
vector of time units over which to run model, starting from 0.
|
init |
vector of initial population sizes for both consumer species, with names P1 and P2, and resource species H |
params |
vector of model parameters: c(r, q, a1, T_h1, e1, d1, a2, T_h2, e2, d2) |
plot_biotic_comp_time()
for plots of the population dynamics over
time
run_biotic_comp_model(
time = seq(0,10),
init = c(H = 30, P1 = 25, P2 = 25),
params = c(r = 0.2, q = .0066,
a1 = .02, T_h1 = 0.1, e1 = 0.4, d1 = 0.1,
a2 = .02, T_h2 = 0.1, e2 = 0.39, d2 = 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.