get_rough_state_cols {ontophylo} | R Documentation |
Get state colors for ploting stochastic character maps when there many states.
get_rough_state_cols(tree)
tree |
simmap object. |
A character vector with colors associated with state names.
Sergei Tarasov
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")