collapseEdges | R Documentation |
Set all edges of a tree with short lengths to be zero.
collapseEdges(tree, delta)
tree |
a phylo object |
delta |
minimum edge length to retain |
a phylo object
tree=read.tree(text="((a:1,b:1):.5,(c:.5,d:2):1);")
newtree=collapseEdges(tree,delta=1)
write.tree(newtree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.