leaf_colours {dendroextras} | R Documentation |
Return the leaf colours of a dendrogram
Description
Return the leaf colours of a dendrogram
Usage
leaf_colours(d, col_to_return = c("edge", "node", "label"))
Arguments
d |
the dendrogram |
col_to_return |
Character scalar - kind of colour attribute to return |
Details
The returned colours will be in dendrogram order.
Value
named character vector of colours, NA_character_ where missing
Author(s)
jefferis
See Also
Examples
d5=colour_clusters(hclust(dist(USArrests), "ave"),5)
leaf_colours(d5)
[Package dendroextras version 0.2.3 Index]