add_approx: Add deterministic approximation line

View source: R/add_approx.R

add_approxR Documentation

Add deterministic approximation line

Description

Adds lines for a deterministic simulation approximating the stochastic simulation, on top of the trait density plot through time.

Usage

add_approx(path)

Arguments

path

Path to the approximation data file (this should be an RDS file)

Note

See the speciome-approx repository and speciomx package for how to simulate the deterministic model.

https://github.com/rscherrer/speciome-approx

Examples


## Not run: 

root <- system.file("extdata", "sim-example", package = "speciomer")
approx <- file.path(root, "approx.rds")
trait_data <- read_individuals(root, "traits", ncols = 3)
trait_plot <- plot_traits(trait_data)
trait_plot + add_approx(approx)


## End(Not run)


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