Description Usage Arguments Details Value
Branches with descendents that have different colors will be represented with the default color.
1 | color.edges(T, tip_colors)
|
T |
ape::phylo() tree object. |
tip_colors |
vector of colors, whether rgb hex or integers, whose order matches the names in the tree tip.label slot. |
NB: the default color is currently hard-coded, which seems unwise. Some trees may not be amenable to the recursion scheme used here. Alternatively, starting to label on the root node may be a bad idea. One tree was reported to have caused a problem, so it is worth keeping in mind.
A vector of colors of length equal to the number of tree branches.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.