mm_ColorLeaves: Color leves of a dendrogram

View source: R/helper_functions.R

mm_ColorLeavesR Documentation

Color leves of a dendrogram

Description

Specify color order approriately for a dendrogram

Usage

mm_ColorLeaves(dendro, cols)

Arguments

dendro

A dendrogram or hclust class object

cols

a vector of colors

Details

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

Value

A dendrogram class object with leaves colored as specified.


ehrlichd/moRphomenses documentation built on Dec. 13, 2024, 8:36 a.m.