View source: R/predator_prey_dynamics.R
plot_predprey_time | R Documentation |
Function for plotting phase portrait of predator-prey model
plot_predprey_time(sim_df)
sim_df |
data frame generated from run_XXX |
run_predprey_model()
for simulating the dynamics of a
predator-prey system, and plot_predprey_portrait()
for making portrait
plots of the predator and prey (including visualizations of the ZNGIs)
# Define parameters for the Rosenzweig-Macarthur model:
params <- c(r = .1, a = .01, e = .01, d = .01, K = 1000, T_h = .1)
sim_df <- run_predprey_model(200, init = c(H = 10, P = 5), params = params)
plot_predprey_time(sim_df = sim_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.