I have made an heat map in R using heatmap function. The commands that I have used is:
pvals <- apply(dm, 1, function(x) wilcox.test(x~c(rep(0,5), rep(1,10)))$p.value)
I get a nice heatmap where the data that is only differential between the two groups at a pvalue of 0.01 is plotted.
Now the thing is, how can I extract the order of the rows IDs in which they have been plotted.
The ones that are high (blue) in one and low(red) in another one.