node.depth {ape}R Documentation

Depth of Nodes and Tips

Description

This function returns the depth of nodes and tips given by the number of descendants (1 is returned for tips).

Usage

node.depth(x)

Arguments

x the matrix `edge' of an object of class "phylo".

Details

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

Value

A numeric vector with `names' being the ``numbers'' of the matrix `edge'.

Note

This function is actually called by plot.phylo(), and is unlikely to be called directly. However, it is documented separately since it may be useful for developers.

Author(s)

Emmanuel Paradis paradis@isem.univ-montp2.fr

See Also

plot.phylo


[Package ape version 1.7 Index]