hierarchical clustering : color the branches of the dendrogram based on the sample types
0
0
Entering edit mode
8 months ago
sanaz • 0

I'm encountering an issue while attempting to generate a hierarchical clustering dendrogram in R. My objective is to color the branches of the dendrogram based on the sample types associated with each sample. However, despite my efforts, all branches appear in red color only.

Despite defining colors for each sample type and creating a color vector accordingly, the resulting dendrogram plot displays all branches in red color. I've ensured that the sample_types variable contains the correct values and that the col_vector is properly assigned. However, the issue persists.

I would appreciate any insights or suggestions on how to correctly color the branches of the dendrogram based on the sample types.

Thank you for your assistance!

R hierarchical-clustering • 304 views
ADD COMMENT

Login before adding your answer.

Traffic: 2043 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6