Entering edit mode
SAURIN
★
1.1k
@saurin-799
Last seen 10.2 years ago
Hi BioC,
This must be simple but somehow I can not be able to do it...
How can I cluster samples only.. below code is giving me dendrogram on
both rows and clumns...! if I do Rowv = FALSE..then I don't see any
colors and KEY.
Please see this:
FeatureX is Matrix with proper rows and colmns.
row.dist <- as.dist(1 - cor(t(FeatureX)));
col.dist <- as.dist(1 - cor(FeatureX));
heatmap.2(FeatureX,col=bluered,Colv = as.dendrogram(hclust(col.dist,
method = "centroid")), scale = "none",key = TRUE,density.info =
"none",tracecol="black");
Thank you in advance,
Saurin