ultrametricize: Ultrametricize tree by stretching final edges

View source: R/branch_lengths.R

ultrametricizeR Documentation

Ultrametricize tree by stretching final edges

Description

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

Usage

ultrametricize(phy)

Arguments

phy

A phylo object, the tree to manipulate.

Value

A phylo object, the manipulated tree.

Examples


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

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