ape (version 3.0-10)

node.depth: Depth and Heights of Nodes and Tips

Description

These functions return the depths or heights of nodes and tips.

Usage

node.depth(phy, method = 1)
node.depth.edgelength(phy)
node.height(phy, clado.style = FALSE)
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 depending on the value of method (see the option node.depth in plot.phylo). 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 or a cladogram.

node.height.clado does the same but for a cladogram (this function will be removed soon as node.height(phy, clado.style = TRUE) does the same thing).

See Also

plot.phylo