View source: R/color_branches.R
leaf_Colors | R Documentation |
The returned Colors will be in dendrogram order.
leaf_Colors(d, col_to_return = c("edge", "node", "label"))
d |
the dendrogram |
col_to_return |
Character scalar - kind of Color attribute to return |
named character vector of Colors, NA_character_ where missing
jefferis
slice,color_branches
dend <- USArrests %>%
dist() %>%
hclust(method = "ave") %>%
as.dendrogram()
d5 <- color_branches(dend, 5)
leaf_Colors(d5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.