normalize_tree: Normalizes branch lengths to a unit tree height

View source: R/tools.R

normalize_treeR Documentation

Normalizes branch lengths to a unit tree height

Description

Normalizes all branch lengths including the root.edge if presents by the same factor, so that the distance from the root to all tips is equal to one.

Usage

normalize_tree(tree, check.ultrametric = TRUE)

Arguments

tree

ultrametric tree of class phylo with branch lengths, and edges in postorder.

check.ultrametric

logical. If TRUE, it checks if the input tree is ultrametric.

Value

normalized phylogenetic tree, of class phylo.


khabbazian/l1ou documentation built on Aug. 10, 2022, 7:41 p.m.