clade_dist | R Documentation |
This function runs ape::dist.nodes()
with some additional filtering and sorting. By default,
it returns distances between every pair of non-nested clades, i.e. every pair of collateral (non-lineal) nodes
including terminals and internal nodes.
clade_dist(tree, lineal = FALSE, edges = TRUE)
tree |
A phylogeny of class |
lineal |
Logical indicating whether to retain distances for pairs of nodes that are lineal ancestors/descendants.
If |
edges |
Logical indicating whether to return a distance matrix with a row for every edge in |
A matrix of pairwise distances between nodes.
clade_dist(ape::rtree(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.