get_rough_state_cols {ontophylo} | R Documentation |
Multiple character state colors
Description
Get state colors for ploting stochastic character maps when there many states.
Usage
get_rough_state_cols(tree)
Arguments
tree |
simmap object. |
Value
A character vector with colors associated with state names.
Author(s)
Sergei Tarasov
Examples
data("hym_stm_amalg")
# Get one sample of stochastic map from head.
tree <- hym_stm_amalg$head[[5]]
# Plot one amalgamated stochastic map from head.
phytools::plotSimmap(tree, get_rough_state_cols(tree),
lwd = 3, pts = FALSE,ftype = "off")
[Package ontophylo version 1.1.3 Index]