rescale_branches_exp: Exponentialize branch lengths

View source: R/branch_lengths.R

rescale_branches_expR Documentation

Exponentialize branch lengths

Description

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.

Usage

rescale_branches_exp(phy, length = 1)

Arguments

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...

Value

A phylo object, the manipulated tree.

Examples


library(ape)
tree <- abridge_labels(get_glottolog_trees("Siouan"))
plot_glotto(tree)
tree2 <- rescale_branches_exp(tree)
plot_glotto(tree2)

erichround/glottoTrees documentation built on April 17, 2025, 10:47 a.m.