Learn R Programming

ggphylo (version 0.1)

tree.lengths.to.root: Returns a vector containing the root-to-tip branch length for each leaf in the tree.

Description

Returns a vector containing the root-to-tip branch length for each leaf in the tree.

Usage

tree.lengths.to.root(phylo)

Arguments

phylo
input phylo object

Value

numeric vector, with one entry for each leaf node.