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
- 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
- yield factor (allows conversion with respect to
d
),
f
- death rate of the predator population,
g
- recycling parameter.
inputs
- Time series specifying external delivery of 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 specifying the integration method.
See Also
simecol-package
,
sim
,
parms
,
init
,
times
.
Examples
data(lv3)
plot(sim(lv3))
solver(lv3) <- "lsoda"
plot(sim(lv3)) # wrong! automatic time step overlooks internal inputs
plot(sim(lv3, hmax=1)) # integration with correct maximum time step
[Package
simecol version 0.4-2
Index]