View source: R/branch_lengths.R
rescale_branches_exp | R Documentation |
Sets the deepest branches to length 1/2, the next deepest to 1/4, the next to
1/8, etc., all multiplied by the parameter length
.
rescale_branches_exp(phy, length = 1)
phy |
A phylo object, the tree to manipulate. |
length |
A positive numeric, a multiplier for the exponential branch lengths 1/2, 1/4, 1/8... |
A phylo object, the manipulated tree.
library(ape)
tree <- abridge_labels(get_glottolog_trees("Siouan"))
plot_glotto(tree)
tree2 <- rescale_branches_exp(tree)
plot_glotto(tree2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.