Description Usage Arguments Value Author(s) Examples
View source: R/SkylineDatedTips_extension.R
Returns a vector with the depths, or heights of the nodes in the tree
Depends on a hidden function nodeHeight, from phangorn.
Values by default are backwards from the youngest tip which is zero. They can be forward relative to the root if from_past=TRUE.
1 | getNodeAges(x, from_past = F)
|
x |
A phylo object |
from_past |
If FALSE (default) the node ages increase backwards in time, with the most recent tip being zero. If TRUE the root node is zero and the node ages increase towards the tips of the tree. |
For a tree with n tips, the vector is <tip1, tip2...tipn, root, internal_node2, internal_node3>
George Shirreff <georgeshirreff@gmail.com>
1 | library(ape)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.