powered by
Return the leaf colours of a dendrogram
leaf_colours(d, col_to_return = c("edge", "node", "label"))
the dendrogram
Character scalar - kind of colour attribute to return
named character vector of colours, NA_character_ where missing
The returned colours will be in dendrogram order.
slice,colour_clusters
# NOT RUN { d5=colour_clusters(hclust(dist(USArrests), "ave"),5) leaf_colours(d5) # }
Run the code above in your browser using DataLab