plot_discrete_population_growth: Plot the dynamics of a discrete population growth model

View source: R/single_population_discrete.R

plot_discrete_population_growthR Documentation

Plot the dynamics of a discrete population growth model

Description

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)

gauravsk/ecoevoapps documentation built on July 9, 2024, 9:37 p.m.