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

cutreeStaticColor

Constant height tree cut using color labels


Description

Cluster detection by a constant height cut of a hierarchical clustering dendrogram.

Usage

cutreeStaticColor(dendro, cutHeight = 0.9, minSize = 50)

Arguments

dendro

a hierarchical clustering dendrogram such as returned by hclust.

cutHeight

height at which branches are to be cut.

minSize

minimum number of object on a branch to be considered a cluster.

Details

This function performs a straightforward constant-height cut as implemented by cutree, then calculates the number of objects on each branch and only keeps branches that have at least minSize objects on them.

Value

A character vector giving color labels of objects, with "grey" meaning unassigned. The largest cluster is conventionally labeled "turquoise", next "blue" etc. Run standardColors() to see the sequence of standard color labels.

Author(s)

Peter Langfelder

See Also

hclust for hierarchical clustering, cutree and cutreeStatic for other constant-height branch cuts, standardColors to see the sequence of color labels that can be assigned.


WGCNA

Weighted Correlation Network Analysis

v1.70-3
GPL (>= 2)
Authors
Peter Langfelder <Peter.Langfelder@gmail.com> and Steve Horvath <SHorvath@mednet.ucla.edu> with contributions by Chaochao Cai, Jun Dong, Jeremy Miller, Lin Song, Andy Yip, and Bin Zhang
Initial release
2021-02-17

We don't support your browser anymore

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