View source: R/helper_functions.R
mm_ColorLeaves | R Documentation |
Specify color order approriately for a dendrogram
mm_ColorLeaves(dendro, cols)
dendro |
A dendrogram or hclust class object |
cols |
a vector of colors |
Leaves of a dendrogram will be re-ordered compared to most input classifiers. This function takes the study-ordered colors and correctly applies them to the dendrogram using dendextend
A dendrogram class object with leaves colored as specified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.