plot_traits: Plot individual traits through time

View source: R/plot_traits.R

plot_traitsR Documentation

Plot individual traits through time

Description

Plot the densities of each trait across the population and through time using geom_bin2d.

Usage

plot_traits(data, burnin_bar = TRUE)

Arguments

data

An individual-level dataset containing trait values for each individual (see ?read_individuals).

burnin_bar

Whether to add a vertical bar at time point zero

Value

A ggplot

See Also

read_individuals

Examples


## Not run: 

root <- system.file("extdata", "sim-example", package = "speciomer")
data <- read_individuals(root, "individual_traits", ncol = 3)
plot_traits(data)


## End(Not run)


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.