ts_edges | R Documentation |
Extract spatio-temporal edge annotation table from a given tree or tree sequence
ts_edges(x)
x |
Tree object generated by |
Data frame of the sf
type containing the times of nodes and
start-end coordinates of edges across space
init_env()
# load an example model with an already simulated tree sequence
slendr_ts <- system.file("extdata/models/introgression_slim.trees", package = "slendr")
model <- read_model(path = system.file("extdata/models/introgression", package = "slendr"))
# load the tree-sequence object from disk
ts <- ts_load(slendr_ts, model)
# extract an annotated table with (spatio-)temporal edge information
ts_edges(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.