plot_mutualism_time | R Documentation |
Generate a plot of trajectories of population sizes over time for the model of mutualism with saturating functional response.
plot_mutualism_time(sim_df)
sim_df |
Data frame of mutualism model simulation returned by
|
A ggplot object with trajectories of population sizes (N1
, N2
) plotted
against time. Population carrying capacities for each species, calculated
from model parameters, are also plotted.
The plot generated with this function is constrained to display only the
first quadrant (i.e. values of 0 and above) of the plane defined by N
and
time
because negative values of N
or time
do not make biological sense.
As a consequence, when sim_df
is generated using negative values for r1
and/or r2
, the corresponding lines for population carrying capacities will
not be visible in the plot because they will lie beyond the plot's limits.
run_mutualism()
, plot_mutualism_portrait()
sim <- run_mutualism()
plot_mutualism_time(sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.