plot_outcome_init: Plot the first generations

View source: R/plot_outcome_init.R

plot_outcome_initR Documentation

Plot the first generations

Description

Plots the first 1,000 generations of a simulation. Supposed to be used on a simulation with only 1,000 generations recorded with high resolution. The start of the x-axis is artificially moved to -20,000 to mimic the early steps of a longer simulation (without this function we would have had to simulate 20,000 generations of burn-in with high resolution, which would have taken a lot of space).

Usage

plot_outcome_init(root, approx = NULL)

Arguments

root

Path to the simulation folder

approx

Path to pass to add_approx. Leave NULL for no overlay approximation plot.

Details

Wrapper around plot_outcome_core

Value

A patchwork

Note

See ?plot_eco_trait_zoomed for the logic behind having a separate high-resolution simulation for the early steps of the burn-in period.

See Also

plot_outcome_core, plot_eco_trait_zoomed

Examples


## Not run: 

root <- system.file("extdata", "sim-example", package = "speciomer")
plot_outcome_init(root)


## End(Not run)


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