I have a simple question about R drawing heatmap. I produced a heatmap using the following code, however, I want to swap the colors between yellow and red (i.e., by default yellow represent high value while red represent low values, i want to swap them).
My second question is: how to add white lines for the boundaries of each unit ? THANKS a lot!
n1 <- read.table(file="test.txt", header=T) n1 <- data.matrix(n1) heatmap.2(n1, trace="none",col=heat.colors(256))