Learn R Programming

ggphylo (version 0.1)

tree.length.to.root: Returns the length from the tree root to the given node. The input node can either be input as a node index or a node label.

Description

Returns the length from the tree root to the given node. The input node can either be input as a node index or a node label.

Usage

tree.length.to.root(phylo, node)

Arguments

phylo
input phylo object
node
integer or character. When integer, the node index; when character, the node label

Value

numeric, the total branch length separating the tree root and the given node.