plot_comm_bubbles: Plot population densities and trait distribution over time,...

View source: R/plot_comm_bubbles.R

plot_comm_bubblesR Documentation

Plot population densities and trait distribution over time, with bubbles

Description

Produces a plot of trait evolution where individuals are binned as bubbles which colour indicate the species identity and the size the number of individuals in the bin. Plots both species identity and individual densities, but at the expense of resolution (compared to plot_comm_trait_evolution()).

Usage

plot_comm_bubbles(
  comrad_tbl,
  generation_range = c(0, Inf),
  xlim = NULL,
  ylim = NULL
)

Arguments

comrad_tbl

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

generation_range

numeric vector with length 2, supplying the first and last generation to plot from the dataset. Defaults to every generation in the table

xlim

numeric vector, the range of x-values, passed to ggplot::coord_cartesian() if not NULL.

ylim

numeric vector, the range of y-values, passed to ggplot::coord_cartesian() if not NULL.

Author(s)

Théo Pannetier


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