powered by
The returned Colors will be in dendrogram order.
leaf_Colors(d, col_to_return = c("edge", "node", "label"))
the dendrogram
Character scalar - kind of Color attribute to return
named character vector of Colors, NA_character_ where missing
slice,color_branches
# NOT RUN { dend <- USArrests %>% dist %>% hclust(method = "ave") %>% as.dendrogram d5=color_branches(dend,5) leaf_Colors(d5) # }
Run the code above in your browser using DataLab