paramo.list | R Documentation |
Performs the final stacking of maps for a set of stochastic character maps stored in a list.
paramo.list(cc, tree.list, ntrees = 1)
cc |
character. Characters IDs to stack. |
tree.list |
multiSimmap or multiPhylo object. Named list with stochastic character maps. |
ntrees |
integer. Number of trees to stack. |
A list of stacked stochastic character maps.
Sergei Tarasov
data("hym_stm") # Select the first five characters. tree_list <- hym_stm[1:5] tree_list <- lapply(tree_list, function(x) discr_Simmap_all(x, res = 100)) tree_list_amalg <- paramo.list(names(tree_list), tree_list, ntrees = 50) tree_list_amalg <- do.call(c, tree_list_amalg) # Plot one amalgamated stochastic map. phytools::plotSimmap(tree_list_amalg[[1]], get_rough_state_cols(tree_list_amalg[[1]]), lwd = 3, pts = FALSE,ftype = "off")