Plot consumer and resource dynamics from deSolve output
plot_rescomp(
model,
consumers = TRUE,
resources = TRUE,
logy = FALSE,
lwd = 1,
xlims = NULL
)
List output from sim_rescomp()
. First element is an object of
class deSolve. Second element is an object of class rescomp.
Plot consumer dynamics? Default = TRUE.
Plot resource dynamics? Default = TRUE.
Log transfrom y-axis (default = FALSE).
Line width (default = 1)
Vector of length giving the time frame to plot.
ggplot object
pars <- spec_rescomp()
#> Model properties
#> * 1 consumer(s) and 1 resource(s)
#> * Consumers have type 1 functional responses
#> * Resource supply is continuous (e.g. chemostat)
#> * Mortality is continuous
#>
#> Simulation properties
#> * Simulation time: 1000 time steps
#> * Init state: consumer(s) = [10], resource(s) = [1]
m1 <- sim_rescomp(pars)
plot_rescomp(m1)