View source: R/branch_lengths.R
ultrametricize | R Documentation |
Alters branches ending in a tip in such a way that all tips are equidistant from the root. Does this by lengthening branches above all but the existing, most-distance tip(s).
ultrametricize(phy)
phy |
A phylo object, the tree to manipulate. |
A phylo object, the manipulated tree.
library(ape)
tree <- rescale_branches_exp(abridge_labels(get_glottolog_trees("Siouan")))
plot_glotto(tree)
tree2 <- ultrametricize(tree)
plot_glotto(tree2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.