Try to search your question here, if you can't find : Ask Any Question Now ?

How to add legend while using heatmap?

HomeCategory: stackoverflowHow to add legend while using heatmap?
Avatarkundan asked 4 months ago

I’m trying to plot a heatmap of a matrix data that I have. The issue is, I’m unable to get the legend, even though I added the argument legend =”col”.

I’ve tried ggplot2 with melt(), but the values in the legend doesn’t match with actual values in the matrix. I’ve also tried heatmap.2. I’m not quite sure what’s happening, but the resulting heatmap doesn’t match with what I want.


Heatmap

1 Answers
Best Answer
AvatarAmit answered 4 months ago
Your Answer

13 + 16 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com