lv3 {simecol} | R Documentation |
Lotka-Volterra-Type model with resource, prey and predator
Description
simecol
example: predator prey-model with three equations:
predator, prey and resource (e.g. nutriens, grassland).
Usage
data(lv3)
Format
A valid S4 object according to the odeModel
specification. The object contains the following slots:
main
- the Lotka-Volterra equations for predator
prey and resource
.
parms
- vector with named parameters of the model:
c
- growth rate of the prey population.
d
- encounter rate of predator and prey.
e
- encounter rate of predator and prey (allows
conversion with respect to d).
f
- death rate of the predator population.
g
- recycling parameter.
inputs
- time series specifying external delivery of the resource.
times
- simulation time and integration interval.
init
- vector with start values for s, p and k.
s
- resource (e.g. grassland or phosphorus).
p
- producer (prey).
k
- consumer (predator).
solver
- character string with the integration method.
See Also
sim
,
parms
,
init
,
times
.
Examples
data(lv3)
plot(sim(lv3))
solver(lv3) <- "lsoda"
plot(sim(lv3)) # wrong! integration overlooks internal inputs
plot(sim(lv3, hmax=1)) # integration with correct maximum time step
[Package
simecol version 0.3-11
Index]