View source: R/paramo_functions.R
get_rough_state_cols | 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.