| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/color_branches.R |
| 3 |
\name{leaf_Colors} |
| 4 |
\alias{leaf_Colors} |
| 5 |
\alias{leaf_colors} |
| 6 |
\title{Return the leaf Colors of a dendrogram} |
| 7 |
\usage{ |
| 8 |
leaf_Colors(d, col_to_return = c("edge", "node", "label")) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{d}{the dendrogram} |
| 12 |
|
| 13 |
\item{col_to_return}{Character scalar - kind of Color attribute to return} |
| 14 |
} |
| 15 |
\value{ |
| 16 |
named character vector of Colors, NA_character_ where missing |
| 17 |
} |
| 18 |
\description{ |
| 19 |
The returned Colors will be in dendrogram order. |
| 20 |
} |
| 21 |
\examples{ |
| 22 |
dend <- USArrests \%>\% |
| 23 |
dist() \%>\% |
| 24 |
hclust(method = "ave") \%>\% |
| 25 |
as.dendrogram() |
| 26 |
d5 <- color_branches(dend, 5) |
| 27 |
leaf_Colors(d5) |
| 28 |
} |
| 29 |
\seealso{ |
| 30 |
\code{\link[dendroextras]{slice},\link{color_branches}} |
| 31 |
} |
| 32 |
\author{ |
| 33 |
jefferis |
| 34 |
} |