Dear all
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))
I don't understand your second question but for your first question simply use
If you are using heatmap.2, then I think you use rowsep and/or colsep to draw lines between the entries in the body of the heatmap