]> git.donarmstrong.com Git - ape.git/blobdiff - man/node.depth.Rd
some updates for ape 3.0-6
[ape.git] / man / node.depth.Rd
index aced56a8c4952757ddc07958b0546ee4dab8fbdb..e4c7bf9bcecf6b812634ef14ad3c8d9aa5458098 100644 (file)
@@ -1,19 +1,31 @@
 \name{node.depth}
 \alias{node.depth}
-\title{Depth of Nodes and Tips}
+\alias{node.depth.length}
+\alias{node.height}
+\alias{node.height.clado}
+\title{Depth and Heights 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).
+  These functions return the depth or height of nodes and tips.
 }
 \usage{
 node.depth(phy)
+node.depth.length(phy)
+node.height(phy)
+node.height.clado(phy)
 }
 \arguments{
   \item{phy}{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.
+  \code{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.
+
+  \code{node.depth.length} does the same but using branch lengths.
+
+  \code{node.height} computes the heights of nodes and tips as plotted
+  by a phylogram.
+
+  \code{node.height.clado} does the same but for a cladogram.
 }
 \value{
   A numeric vector indexed with the node numbers of the matrix `edge' of