color.edges: Recursively propagate tip colors internally to color interior...

Description Usage Arguments Details Value

Description

Branches with descendents that have different colors will be represented with the default color.

Usage

1
color.edges(T, tip_colors)

Arguments

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.

Details

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.

Value

A vector of colors of length equal to the number of tree branches.


phraber/pixelgram documentation built on May 25, 2019, 6:02 a.m.