Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/colour_clusters.R
Return the leaf colours of a dendrogram
1 | leaf_colours(d, col_to_return = c("edge", "node", "label"))
|
d |
the dendrogram |
col_to_return |
Character scalar - kind of colour attribute to return |
The returned colours will be in dendrogram order.
named character vector of colours, NA_character_ where missing
jefferis
1 2 | d5=colour_clusters(hclust(dist(USArrests), "ave"),5)
leaf_colours(d5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.