Skip to contents

Plot the dynamics of a discrete population growth model

Usage

plot_discrete_population_growth(sim_df)

Arguments

sim_df

data frame of discrete population growth

See also

run_discrete_exponential_model(), run_discrete_logistic_model(), run_beverton_holt_model(), run_ricker_model() for functions that generate the sim_df objects plotted by this function

Examples

dl_params <- c(rd = 1.1, K = 1000)
sim_df_dl <- run_discrete_logistic_model(N0 = 1, params = dl_params, time = 100)
plot_discrete_population_growth(sim_df_dl)

bh_params <- c(rd = 1.1, K = 1000)
sim_df_bh <- run_beverton_holt_model(N0 = 1, params = bh_params, time = 100)
plot_discrete_population_growth(sim_df_bh)

ri_params <- c(rd = 1.1, K = 1000)
sim_df_ri <- run_ricker_model(N0 = 1, params = ri_params, time = 100)
plot_discrete_population_growth(sim_df_ri)