From: Marc Hoeppner Date: 2009-11-27T21:49:57+09:00 Subject: Re: Heatmaps in Ruby Hi, thanks for the link - I suspected that R would probably have that functionality. At this point I am simply curious how to do it in ruby. I managed to write a simple program that uses RMagick to draw an intensity map. It takes the highest observed value, sets it to 100% and then draws other values in relation to that. What I don't know is how to write a method that, based on a numerical value, determines a color, i.e. from blue to red. So if for example the value '1' should be a deep blue and '100' a bright red - how would one do that? All color coding schemes allowed! RMagick can draw colors using a cmyk notation (c,m,y,k) in percent as well as rgb or the commonly found code in css files ala #00cc33 . Am interested in all suggestions ;) -- Posted via http://www.ruby-forum.com/.