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?
kundan asked 2 weeks 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.


1 Answers
Best Answer
Amit answered 2 weeks ago
Your Answer

2 + 1 =

Popular Tags

WP Facebook Auto Publish Powered By :