フィルターのクリア

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

2 ビュー (過去 30 日間)
Albert Wang
Albert Wang 2019 年 2 月 23 日
回答済み: Abhishek Singh 2019 年 3 月 6 日
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 Center および File ExchangeData 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