Hi all,
I'm trying to plot a heat map with fold change (log2 values) values ranging from almost -100 to 100 across 6 time points. There are actually very few points in the extreme ranges of fold change. I was planning on plotting just the -10 to 10 range in the scale with differing color intensity where as the points above or below that will be color coded in a single color. I tried using breaks with (-100,-10,-5,0,5,10,100) but in the legend the color code for -10 to 10 range is not visible. Can you please suggest any other solution. I've been looking for it everywhere but haven't found a solution. I would really appreciate your help. Thanks in advance!
Can you paste the exact code that you have been trying via the specification of breaks? - thanks!
Please find the code below. Patterns are the way set of few genes fall into a category based on their expression across the timepoints and I just used it for the row annotation.
Hello chetana my friend, you are specifying the breaks incorrectly.
To specify breaks for a heatmap, you have to do something like this:
Please take a look here: Keeping pheatmap colour range the same for different data sets