paramo.list {ontophylo} | R Documentation |
Stack multiple discrete stochastic character map lists
Description
Performs the final stacking of maps for a set of stochastic character maps stored in a list.
Usage
paramo.list(cc, tree.list, ntrees = 1)
Arguments
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. |
Value
A list of stacked stochastic character maps.
Author(s)
Sergei Tarasov
Examples
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")
[Package ontophylo version 1.1.3 Index]