Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

splitEdgeColor

Split edge colors when descendant edges have different mapped states


Description

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.

Usage

splitEdgeColor(tree,colors,lwd=2)

Arguments

tree

object of class "simmap".

colors

named vector of colors to be used for plotting.

lwd

width of the plotted lines.

Author(s)

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also


phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.