How to have multiple ColumnLabelsColor (or RowLabelsColor) in clustergram?

3 views (last 30 days)
I would like to plot a heatmap/clustergram similar to the picture attached here. Each column is a sample, which has multiple variables such as gender and collection time etc. I want to display multiple rows of colors to label these variables (where each row represent one varaible) for each sample, but currently I only figure out how to display one variable by setting the "ColumnLabelsColor" property in clustergram. Is it possible to have multiple rows of label colors like in the picture attached? Or is there other good alternatives to do this? Thanks for the help!
ce88c2e2-0d45-4d9b-a199-be145c6baab8_figure10.gif

Answers (1)

Abhishek Singh
Abhishek Singh on 6 Mar 2019
Assuming you have the clustergram already, you can Right-click a branch node in the dendrogram(clustergram) to display a menu of options. Then you can go on to do what you require by using Set Group Color option.
xxfunction_clustergram_examplestep5.png
For further details you can look into the example provided in following link:

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!