File: color_unique_labels.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 (30 lines) | stat: -rw-r--r-- 660 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/labels_colors.R
\name{color_unique_labels}
\alias{color_unique_labels}
\title{Color unique labels in a dendrogram}
\usage{
color_unique_labels(dend, ...)
}
\arguments{
\item{dend}{a dend object}

\item{...}{NOT USED}
}
\value{
A dendrogram after the colors of its labels have been updated (a different color for each unique label).
}
\description{
Color unique labels in a dendrogram
}
\examples{

x <- c(2011, 2011, 2012, 2012, 2015, 2015, 2015)
names(x) <- x
dend <- as.dendrogram(hclust(dist(x)))

par(mfrow = c(1, 2))
plot(dend)
dend2 <- color_unique_labels(dend)
plot(dend2)
}