Reputation: 1797
I want to draw a heatmap corresponding to a matrix in R. I am using the following command:
heatmap(my_heatmap, Rowv=NA, Colv=NA, col = cm.colors(256), scale="column", margins=c(10,10))
The problem is that heatmap
command seems like to produce the heatmap for each column separately and does not consider the whole matrix. Any idea for that?
Upvotes: 1
Views: 368
Reputation: 206167
You've explicitly set scale="column"
which rescales the data for each column. If that's not what you want, try scale="none"
.
Upvotes: 2