| labels.hclust {dendroextras} | R Documentation |
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.
## S3 method for class 'hclust' labels(object, ...)
object |
hclust object from which to extract labels |
... |
Additional arguments (ignored) |
character vector of labels in dendrogram order
jefferis
hc <- hclust(dist(USArrests), "ave") dend <- as.dendrogram(hc) stopifnot(all.equal(labels(hc),labels(dend)))