Swaps a branch of a hclust object.

Description

Swaps the left and right branch at a specified level of a dendrogram.

Usage

1
swaptree(hc, level)

Arguments

hc

An hierarchical clustering object as produced by hclust.

level

The level to be swapped.

Value

Returns an hclust object.

Author(s)

Bernd Fischer

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.