Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

leaf_colours

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)

dendroextras

Extra Functions to Cut, Label and Colour Dendrogram Clusters

v0.2.3
GPL (>= 2)
Authors
Gregory Jefferis [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.