Hi Irsan and arno.guille, your comments are very helpful,but I still have problem: the picture color becomes white and red! I want it to be between yellow and red.
Sorry for my second unclear question. Each value is presented by a color cell in R heatmap, but by default the cell does not have boundary lines. I want to add white (or gray) boundary lines, and ideally I can adjust the width of the boundary line. THANKS a lot!
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