How can I put color scale & legend on Heatmap
0
0
Entering edit mode
SAURIN ★ 1.1k
@saurin-799
Last seen 9.7 years ago
Hi, On my heatmap, I am doing: > rbg <- maPalette(low="blue", high="red", mid="white") > Feature_GeneNames <- mget(unique(myFeatureGenes),env = moe430aGENENAME); > row.names(esetFeatureX) <- Feature_GeneNames; > colnames(esetFeatureX) <- samples; > heatmap(esetFeatureX,Rowv= NA ,Colv= NA,col=rbg,margins=c(10,30)); I can see nice heat map, but how should I put legend on heatmap image because legend() does seem to work in combination of heatmap. May be I am doing something wrong. How can I put legend & color scale below heatmap image. Any heatmap suggestion would be great..! Thank you, Saurin
• 1.8k views
ADD COMMENT

Login before adding your answer.

Traffic: 285 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