Description Usage Arguments Details Value Author(s) See Also Examples
Funtion to compact a phylogenetic tree. See details.
1 | compact.tree(tree, nodes)
|
tree |
phylogeny as an object of class "phylo". |
nodes |
a vector with node label to compact the edges. Only two tips are keeps, most short a most long within each nodes |
This function compacts the node of a phylogenetic tree. Inside each node the function removes tips
using the function drop.tip
. Only two tips are keeped: the longhest and shortest edge length within each
node. This can be useful only for the function plotcollapse.phylo
.
The phylogeny as an object of class "phylo" with nodes compacted.
Vanderlei Julio Debastiani <vanderleidebastiani@yahoo.com.br>
plotcollapse.phylo
graphical.node.patterns
1 2 3 4 5 6 7 8 | set.seed(10)
tree <- rtree(15)
tree <- makeNodeLabel(tree)
plot.phylo(tree, show.node.label = TRUE)
nodes <- c("Node6", "Node13")
res <- compact.tree(tree, nodes)
res
plot.phylo(res, show.node.label = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.