color scheme heatmap.2
1
0
Entering edit mode
Roel Verhaak ▴ 10
@roel-verhaak-2134
Last seen 9.6 years ago
Dear list, I am generating genes vs samples expression heatmaps using the heatmap.2 function from the gplots library. The heatmap data is centered around zero and varies from approximately -6 to 6. Like the heatmap function, a color scheme needs to be specified, for which I have used greenred(75) so far. The most extreme green and red colors are now assigned to the most extreme values; it is also possible to define a color scheme that assigns the most extreme colors to not the most extreme values, for instance -3 and 3 in my case? Thanks and regards, Roel Verhaak
• 2.5k views
ADD COMMENT
0
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States
Roel Verhaak wrote: > Dear list, > > I am generating genes vs samples expression heatmaps using the heatmap.2 > function from the gplots library. The heatmap data is centered around > zero and varies from approximately -6 to 6. > > Like the heatmap function, a color scheme needs to be specified, for > which I have used greenred(75) so far. The most extreme green and red > colors are now assigned to the most extreme values; it is also possible > to define a color scheme that assigns the most extreme colors to not the > most extreme values, for instance -3 and 3 in my case? > Look at the breaks argument: heatmap.2(....,breaks=seq(-3,3,-0.1),col=greenred(59)) Sean
ADD COMMENT

Login before adding your answer.

Traffic: 684 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6