Skip to content

Heatmap

2 messages · Eleftheria Dalmaris, Rui Barradas

#
Hello all,

I have made the attached heat map without a problem.

On this heat map, the yellows are my high values and the oranges are my low
values. Is there a way to change that? Where the orange color is to have
the yellow and vice versa?

Thanks a lot,

Eleftheria

P.S.
In case is needed here is the code:
data_heatmap <- heatmap(data_matrix, Rowv=NA, Colv=NA, col =
heat.colors(256), scale="column",
cexCol = 1.5, cexRow = 0.5, margins=c(0.5,5))

-------------- next part --------------
A non-text attachment was scrubbed...
Name: HeatMap_211019_withCluster.pdf
Type: application/pdf
Size: 5575 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20191021/78729a7f/attachment.pdf>
#
Hello,

Just do col = rev(heat.colors(256)) ?

Hope this helps,

Rui Barradas

?s 12:55 de 21/10/19, Eleftheria Dalmaris escreveu: