add_approx | R Documentation |
Adds lines for a deterministic simulation approximating the stochastic simulation, on top of the trait density plot through time.
add_approx(path)
path |
Path to the approximation data file (this should be an RDS file) |
See the speciome-approx
repository and speciomx
package
for how to simulate the deterministic model.
https://github.com/rscherrer/speciome-approx
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.