plot_eco_trait_zoomed: Plot ecological trait density at different times

View source: R/plot_eco_trait_zoomed.R

plot_eco_trait_zoomedR Documentation

Plot ecological trait density at different times

Description

Plots three portions of the ecological trait density plot: over the full simulation time span, at the very start and around branching time.

Usage

plot_eco_trait_zoomed(root, root_init, add_rect = FALSE)

Arguments

root

Path to the simulation folder

root_init

Path to the initialization simulation folder, i.e. a simulation that is the equivalent of root, but simulated only for a few thousand generations and with a high recording resolution. This allows us to see what is happening in detail in the early steps.

add_rect

Whether to add a shading rectangle on the left facet to indicate what part of the plot is zoomed in, in the right facet.

Details

Because the burn-in in root_init is not as long as in root, the starting time is modify so the two simulations match each other (the two simulations should be identical because they are simulated with the same seed).

Value

A ggplot

See Also

read_individuals


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