View source: R/tree_manipulation.R
merge_phylo | R Documentation |
Merge fully named subtrees according to a reference tree
merge_phylo(x, subtrees)
## S3 method for class 'Strata'
merge_phylo(x, subtrees)
## S3 method for class 'phylo'
merge_phylo(x, subtrees)
x |
phylo object |
subtrees |
A list of phylo objects. All nodes and leafs of each tree must be named. All names must be from 'tree'. |
phylo object
data(atree)
subtrees <- list(
subtree(atree, 'n19'),
subtree(atree, 'n18'),
subtree(atree, 'n15')
)
merge_phylo(atree, subtrees)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.