labels.hclust: Find labels of hclust object (in dendrogram order)

Description Usage Arguments Value Author(s) See Also Examples

View source: R/labels.R

Description

NB will return labels in dendrogram order, not in the order of the original labels retained in object$labels ususally corresponding to the row or column names of the dist object provided to hclust.

Usage

1
2
## S3 method for class 'hclust'
labels(object, ...)

Arguments

object

hclust object from which to extract labels

...

Additional arguments (ignored)

Value

character vector of labels in dendrogram order

Author(s)

jefferis

See Also

labels,hclust

Examples

1
2
3
hc <- hclust(dist(USArrests), "ave")
dend <- as.dendrogram(hc)
stopifnot(all.equal(labels(hc),labels(dend)))

dendroextras documentation built on May 29, 2017, 9:02 a.m.

Search within the dendroextras package
Search all R packages, documentation and source code