Debian Codegraph @

man/get_branches_heights.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/attr_access.R
3 \name{get_branches_heights}
4 \alias{get_branches_heights}
5 \title{Get height attributes from a dendrogram}
6 \usage{
7 get_branches_heights(
8 dend,
9 sort = TRUE,
10 decreasing = FALSE,
11 include_leaves = FALSE,
12 ...
13 )
14 }
15 \arguments{
16 \item{dend}{a dendrogram.}
17
18 \item{sort}{logical. Should the heights be sorted?}
19
20 \item{decreasing}{logical. Should the sort be increasing or decreasing? Not available for partial sorting.}
21
22 \item{include_leaves}{logical (FALSE). Should the output include the leaves value (0's).}
23
24 \item{...}{not used.}
25 }
26 \value{
27 a vector of the dendrogram's nodes heights (excluding leaves).
28 }
29 \description{
30 Get height attributes of a dendrogram's branches
31 }
32 \examples{
33
34 hc <- hclust(dist(USArrests[1:4, ]), "ave")
35 dend <- as.dendrogram(hc)
36 get_branches_heights(dend)
37 }