coal_to_tree | R Documentation |
generates a tree from a vector of coalescence times by randomly merging lineages.
coal_to_tree(coal_times)
coal_times |
A numeric vector of coalescence times |
An ape object of class "phylo" representing the ultrametric phylogenetic tree with edge lengths in units of time.
# Generate an ape phylo tree with n tips from a vector of n-1 coalescence times
randomCoalTimes <- c(9.3, 7.8, 10.15, 11.23, 9.4, 8.8, 10.01, 13)
tree <- coal_to_tree(randomCoalTimes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.