A.M.
A.M.

Reputation: 1797

Drawing heatmap for a matrix in R

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

Answers (1)

MrFlick
MrFlick

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

Related Questions