ape (version 3.0-9)

node.depth: Depth and Heights of Nodes and Tips

Description

These functions return the depth or height of nodes and tips.

Usage

node.depth(phy)
node.depth.edgelength(phy)
node.height(phy)
node.height.clado(phy)

Arguments

Value

A numeric vector indexed with the node numbers of the matrix `edge' of phy.

Details

node.depth computes the depth of a node as the number of tips which are its descendants. The value of 1 is given to the tips.

node.depth.edgelength does the same but using branch lengths.

node.height computes the heights of nodes and tips as plotted by a phylogram.

node.height.clado does the same but for a cladogram.

See Also

plot.phylo