plot_pop_trend: Plot population trend

plot_pop_trendR Documentation

Plot population trend

Description

Plot linear graphs to illustrate population changes through time.

Usage

plot_pop_trend(x, stages = NULL, emp = FALSE, return_data = FALSE, ...)

Arguments

x

a simulation_results object

stages

life-stages to plot - by default all life-stages will be shown. Set to zero for totals (i.e. sums of all life-stages).

emp

(TRUE/FALSE) add a dashed line indicating the expected minimum population of the simulation (for multiple replicates only)

return_data

(TRUE/FALSE) should the data used to create the plots be returned?

...

further arguments passed to/from other methods

Examples


## Not run: 
ls <- landscape(population = egk_pop, suitability = egk_hab, carrying_capacity = egk_k)

pd <- population_dynamics(change = growth(egk_mat),
                          dispersal = kernel_dispersal(max_distance = 2000,
                                        dispersal_kernel = exponential_dispersal_kernel(
                                          distance_decay = 1000)),
                          density_dependence = ceiling_density())

sim <- simulation(landscape = ls,
                  population_dynamics = pd,
                  habitat_dynamics = NULL,
                  timesteps = 20)

# Plot the population trajectories by life-stage
plot_pop_trend(sim)

# Plot the total population trajectory
plot_pop_trend(sim, stages = 0) 

## End(Not run)

steps documentation built on Oct. 5, 2022, 1:06 a.m.