View source: R/sim_bd_twin_tree.R
sim_bd_twin_tree | R Documentation |
Simulate a Birth-Death (BD) twin tree from the true phylogeny
sim_bd_twin_tree(
true_phylogeny,
method = "random_tree",
n_replicates = 10000,
os = rappdirs::app_dir()$os
)
true_phylogeny |
the true phylogeny; the actual evolutionary history of the species, of class phylo |
method |
determines how to create the twin tree
|
n_replicates |
number of replicas to evaluate in order to create the twin tree |
os |
name of the operating system, can be |
a twin BD tree of class phylo, obtained from the corresponding phylogeny.
Richèl J.C. Bilderbeek, Giovanni Laudanno
Use sim_yule_twin_tree to simulate a Yule twin tree
Use get_sim_bd_twin_tree_fun to get a partially
evaluated function to use in the twinning_params
(as
created by create_twinning_params)
phylogeny <- ape::read.tree(text = "((A:2, B:2):1, C:3);")
sim_bd_twin_tree(phylogeny)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.