Hello,

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

Hope this helps,

Rui Barradas

Às 12:55 de 21/10/19, Eleftheria Dalmaris escreveu:
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))


______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
  • [R] Heatmap Eleftheria Dalmaris
    • Re: [R] Heatmap Rui Barradas

Reply via email to