| splitEdgeColor {phytools} | R Documentation |
Split edge colors when descendant edges have different mapped states
Description
Splits the vertical linking-line color on a plotted tree to match the daughter edges.
Usage
splitEdgeColor(tree,colors,lwd=2)
Arguments
tree |
object of class |
colors |
named vector of colors to be used for plotting. |
lwd |
width of the plotted lines. |
Details
This function splits the vertical line colors to match the daughter edges when the daughters have different states. Mostly to be used with trees generated using paintBranches or paintSubTree. Also used internally by plotSimmap.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
See Also
[Package phytools version 2.3-0 Index]