getOtgrp | R Documentation |
Return the outgroup based on a tree and a vector of IDs.
getOtgrp(tree, ids)
tree |
|
ids |
vector of node ids |
Returns a id, character. If there are multiple possible outgroups, returns NULL.
https://github.com/DomBennett/treeman/wiki/get-methods
data(mammals)
# orangutan is an outgroup wrt humans and chimps
getOtgrp(mammals, ids = c("Homo_sapiens", "Pan_troglodytes", "Pongo_pygmaeus"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.