-1

1[enter image description here]2

I am trying to make heatmap using pheatmap fucntion. My problem is always all the values between high and low are showing as same color. Is there any way to show more dynamic heatmap picture?

1 Answers1

0

Try this:

 library(RColorBrewer)
 colors <- colorRampPalette(brewer.pal(9, "Blues"))(255)
 pheatmap(mat,
          col=colors,
          )

It should work if your data is correctly formatted.

arvchi
  • 61
  • 11