unbranch trees and merges the subtree to the parent node.
unbranch(dend, ...)
# S3 method for default
unbranch(dend, ...)
# S3 method for dendrogram
unbranch(dend, branch_becoming_root = 1, new_root_height, ...)
# S3 method for hclust
unbranch(dend, branch_becoming_root = 1, new_root_height, ...)
# S3 method for phylo
unbranch(dend, ...)
a dendrogram (or hclust) object
passed on
a numeric choosing the branch of the root which will become the new root (from left to right)
the new height of the branch which will become the new root. If the parameter is not given - the height of the original root is used.
An unbranched dendrogram
unroot ape