OrderClust: Reindex cluster labels in ascending order

Description Usage Arguments

Description

Given an hclust object and the number of clusters k this function reindex the clusters inferred by cutree(hc, k)[hc$order], so that they appear in ascending order. This is particularly useful when plotting heatmaps in which the clusters should be numbered from left to right.

Usage

1
OrderClust(hc, k)

Arguments

hc

an object of class hclust

k

number of cluster to be inferred from hc


TinyOpen/boclust documentation built on May 28, 2019, 3:17 p.m.