unbranch trees and merges the subtree to the parent node.
unbranch(dend, ...)
# Default S3 method
unbranch(dend, ...)
# S3 method for class 'dendrogram'
unbranch(dend, branch_becoming_root = 1, new_root_height, ...)
# S3 method for class 'hclust'
unbranch(dend, branch_becoming_root = 1, new_root_height, ...)
# S3 method for class '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