plot_comm_size: Plot community size over generations

View source: R/plot_comm_size.R

plot_comm_sizeR Documentation

Plot community size over generations

Description

Plots the number of individuals in the community over time.

Usage

plot_comm_size(comrad_tbl, colouring = "species_names", which_geom = "area")

Arguments

comrad_tbl

a tibble containing the output of a comrad simulation, as produced by run_simulation().

colouring

character specifying how to colour each species. Default auto lets ggplot pick colours as usual. species_names is used when colour hexes are sampled as species names during the simulation, and will colour each species with its colour. This ensures consistency across plots but may make colours harder to distinguish based on which hexes where sampled.

which_geom

character specifying the geom to plot. "area" plots a stack of area plots coloured by species, "line" plots the population sizes of each species in separate lines (still coloured by species).

Author(s)

Théo Pannetier


TheoPannetier/comrad documentation built on April 8, 2023, 8:06 a.m.