Rdocumentation
powered by
Learn R Programming
ggphylo (version 0.1)
tree.depth.to.root: Returns the length from the tree root to the given node. Note: the node can be given either as a node index or a tip label.
Description
Returns the length from the tree root to the given node. Note: the node can be given either as a node index or a tip label.
Usage
tree.depth.to.root(phylo, node)
Arguments
phylo
input phylo object
node,
either integer or character. When integer, the node index of the desired node to query. When character, the label of the desired node to query.