View source: R/manipulate_phylo.R
scale_phylo | R Documentation |
Rescale branch lengths for a phylo object to fix the maximum distance from the root to tip of a phylogenetic tree.
scale_phylo(phy, max_dist = 1)
phy |
An object of class "phylo". |
max_dist |
A positive, real scalar. The maximum distance along the rescaled phylogeny from root to tip. |
An object of class "phylo" where the maximum distance from the root to tip is max_dist
tr <- ape::rtree(100) tr1 <- scale_phylo(tr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.