Debian Codegraph @

man/order.hclust.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/labels.R
3 \name{order.hclust}
4 \alias{order.hclust}
5 \title{Ordering of the Leaves in a hclust Dendrogram}
6 \usage{
7 order.hclust(x, ...)
8 }
9 \arguments{
10 \item{x}{ab hclust object a distance matrix.}
11
12 \item{...}{Ignored.}
13 }
14 \value{
15 A vector with length equal to the number of
16 leaves in the hclust dendrogram is returned.
17 From r <- order.hclust(), each element is
18 the index into the original data
19 (from which the hclust was computed).
20 }
21 \description{
22 Ordering of the Leaves in a hclust Dendrogram. Like \link{order.dendrogram}.
23 }
24 \examples{
25
26 set.seed(23235)
27 ss <- sample(1:150, 10)
28 hc <- iris[ss, -5] \%>\%
29 dist() \%>\%
30 hclust()
31 # dend <- hc \%>\% as.dendrogram
32 order.hclust(hc)
33 }
34 \seealso{
35 \link{order.dendrogram}
36 }