plot_k_trend: Plot carrying capacity (k) trend

plot_k_trendR Documentation

Plot carrying capacity (k) trend

Description

Plot linear graphs to illustrate carrying capacity changes through time.

Usage

plot_k_trend(x, summary_stat = "mean", return_data = FALSE, ...)

Arguments

x

a simulation_results object

summary_stat

how to summarize the values across the landscape - "mean" (default) or "sum"

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 carrying capacity trajectories
plot_k_trend(sim)

## End(Not run)

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