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

2 次查看(过去 30 天)
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

回答(1 个)

Abhishek Singh
Abhishek Singh 2019-3-6
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:

类别

Help CenterFile Exchange 中查找有关 Data Import and Management 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by