View source: R/twin_to_yule_tree.R
sim_yule_twin_tree | R Documentation |
Create a twin tree from a phylogeny using a Yule process
sim_yule_twin_tree(
true_phylogeny,
method = "random_tree",
n_replicates = 10000
)
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 |
a twin Yule tree of class phylo,
Richèl J.C. Bilderbeek, Giovanni Laudanno
Use sim_bd_twin_tree to simulate a Birth-Death twin tree.
Use create_sim_yule_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);")
yule_tree <- sim_yule_twin_tree(phylogeny)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.