Description Usage Arguments Details Value Note Author(s) See Also Examples
Returns the edge length between each tip and its parent, or alternatively the total distance to each tip from the root node of the phylogeny.
1 |
phy |
A |
from |
Should lengths represent distance from parents only (i.e., simply the lengths of terminal branches), or from the root node? |
When from
is "parent"
, the function is a straightforward
wrapper of the edgeLength
function in the phylobase package.
When from
is "root"
, the function uses an implementation
of Dijkstra's algorithm to compute the total distance from the root to
each of the tips.
Numeric vector of lengths, with the associated tip node labels as names.
When calculating the distance from root, the length of the root edge itself is not included in the returned value. See examples for a simple way to add this additional edge to the result.
Jim Regetz (regetz@nceas.ucsb.edu)
Method edgeLength
in the
phylobase package.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.