Add xticks to a clustergram
이전 댓글 표시
Hi,
I'm looking for a way to add xticks to a clustergram which I am creating using the function clustergram.
I simply want xticks from 0 to 4000 in spaces of 500, but could not find this option in the function.
Thanks a lot!
댓글 수: 3
Adam Danz
2019년 11월 14일
Clustergrams use a heatmap object which is notoriously difficult to customize. That being said, we may be able to recommend some things to try but first we need more information.
Could you provide a minimal working example that reproduces your clustergram with minimal data? You could re-create your input matrix using rand() that matches the size of your input and any other additional inputs to clustergram you're using.
Shani Hadar
2019년 11월 24일
Adam Danz
2019년 11월 24일
I see. Give my answer a try and let us know if this is what you were looking for.
채택된 답변
추가 답변 (1개)
Raunak Gupta
2019년 11월 19일
0 개 추천
Hi,
From the figure of clustergram, the xticks can be interpretated as the ‘ColumnLabels’ property of the clustergram Object. Thus, by setting the ‘ColumnLabels’ to 0:500:4000 can change the column labels of clustergram. However, the xticks will be set based on the clustering that will be happen and it may not be in ascending order.
카테고리
도움말 센터 및 File Exchange에서 Expression Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!