random_tree | R Documentation |
Create a random ranked phylogeny using the coalescent method.
random_tree(n)
n |
the number of tips |
This is implementation of a ranked coalescent algorithm described in Collienne (2021).
Starting from n
tips of a tree, all with rank 0, randomly select two tips and merge them
into a new node with rank 1, and add the new node to remaining tips. In next iteration, assign
rank 2 and so on, until only a single node, the root, remains.
random ranked tree of class "rankedPhylo"
Collienne, L. (2021). Spaces of Phylogenetic Time Trees (p. 158). University of Otago.
random_tree(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.