File: order.hclust.Rd

package info (click to toggle)
r-cran-dendextend 1.16.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,936 kB
  • sloc: sh: 13; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 791 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/labels.R
\name{order.hclust}
\alias{order.hclust}
\title{Ordering of the Leaves in a hclust Dendrogram}
\usage{
order.hclust(x, ...)
}
\arguments{
\item{x}{ab hclust object a distance matrix.}

\item{...}{Ignored.}
}
\value{
A vector with length equal to the number of
leaves in the hclust dendrogram is returned.
From r <- order.hclust(), each element is
the index into the original data
(from which the hclust was computed).
}
\description{
Ordering of the Leaves in a hclust Dendrogram. Like \link{order.dendrogram}.
}
\examples{

set.seed(23235)
ss <- sample(1:150, 10)
hc <- iris[ss, -5] \%>\%
  dist() \%>\%
  hclust()
# dend <- hc \%>\% as.dendrogram
order.hclust(hc)
}
\seealso{
\link{order.dendrogram}
}