Learn R Programming

treestats (version 1.70.5)

tree_height: Height of a tree.

Description

In a reconstructed tree, obtaining the tree height is fairly straightforward, and the function beautier::get_crown_age does a great job at it. However, in a non-ultrametric tree, that function no longer works. Alternatively, taking the maximum value of adephylo::distRoot will also yield the tree height (including the root branch), but will typically perform many superfluous calculations and thus be slow.

Usage

tree_height(phy)

Value

crown age

Arguments

phy

phylo object