read_model | R Documentation |
Reads all configuration tables and other model data from a location
where it was previously compiled to by the compile
function.
read_model(path)
path |
Directory with all required configuration files |
Compiled slendr_model
model object which encapsulates all
information about the specified model (which populations are involved,
when and how much gene flow should occur, what is the spatial resolution
of a map, and what spatial dispersal and mating parameters should be used
in a SLiM simulation, if applicable)
init_env()
# load an example model with an already simulated tree sequence
path <- system.file("extdata/models/introgression", package = "slendr")
model <- read_model(path)
plot_model(model, sizes = FALSE, log = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.