How to have multiple ColumnLabelsColor (or RowLabelsColor) in clustergram?
8 次查看(过去 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!
0 个评论
回答(1 个)
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.
For further details you can look into the example provided in following link:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Expression Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!