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.