Set group colors in clustergram dendrogram (programmatically)
조회 수: 3 (최근 30일)
이전 댓글 표시
Pablo Imael Vergara Garcia
2020년 10월 10일
댓글: Pablo Imael Vergara Garcia
2020년 10월 15일
I am using the clustergram function from Bioinformatics Toolbox.
I would like to create custom group colors as shown in the figure (programmatically):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/376466/image.png)
I know that Clustergram GUI allows changing group colors. However, Is there any way to do this from the command line? I need to automate this inside a function.
I have tried the following:
I have changed the ColumnGroupMarker or Dendrogram properties. However, this does not serve my purpose because I need to label specific leaves of the dendrogram (not by tresholding).
I can achieve what I want using the dendrogram function from statistics and Machine Learning Toolbox. But this doesnt allow me to display the dendrogram with the heatmap as the Clustergram function does.
Thanks in advance,
댓글 수: 0
채택된 답변
Scott Ronquist
2020년 10월 14일
Would clusterGroup fit your use-case (link to example)? This performs what *Right-click* -> "Set Group Color" does, programatically.
추가 답변 (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!