1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
\name{splitEdgeColor}
\alias{splitEdgeColor}
\title{Split edge colors when descendant edges have different mapped states}
\usage{
splitEdgeColor(tree,colors,lwd=2)
}
\arguments{
\item{tree}{object of class \code{"simmap"}.}
\item{colors}{named vector of colors to be used for plotting.}
\item{lwd}{width of the plotted lines.}
}
\description{
Splits the vertical linking-line color on a plotted tree to match the daughter edges.
}
\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 \code{\link{paintBranches}} or \code{\link{paintSubTree}}. Also used internally by \code{\link{plotSimmap}}.
}
\references{
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). \emph{PeerJ}, \bold{12}, e16505.
}
\author{Liam Revell \email{liam.revell@umb.edu}}
\seealso{
\code{\link{plotSimmap}}
}
\keyword{phylogenetics}
\keyword{plotting}
\keyword{comparative method}
|