<p>This dataset is for a specific disease-gene-test results. The dataset goes like this. </p>

<p>| Test | Gene | Relevance | Values |</p>

<p>Test and Gene are the two parameters on x and y axis. Values are the combined results for the parameters pair. 
The problem for me here is that I have one more parameter called Relevance which represents the relevance of the test-gene pair and it is boolean (only two values YES/NO).</p>

<ul>
<li>The dataset (Relevance) should be differentiated in the map with different colour (like red and green).</li>
<li>Gradient of that colour represents numerical values between that interaction.</li>
</ul>

<p>The end result I was aiming at was, Test on x-axis and Gene on y-axis and the map for these interaction will be only with two colours (representing Relevance values) and the gradient of that colour representing Values. 
Is this possible to achieve this kind of Heatmap, if Yes how can I achieve.
If not is there any other option to display such kind of data (similar to heatmap)</p>

<p>Help appreciated !!</p>

<p>Thanks,</p>

<p>RDS</p>

<p>something like this -
<img src='http://www.mathworks.com/matlabcentral/fx_files/24253/2/heatmap.png' alt='something like this' /></p>

<p>I am sure you can do it in R, a little bit fancy using the <code>ggplot2</code> library and having your data in the form of dataframe.
Check these two posts on how to achieve it.
<a href="http://learnr.wordpress.com/2010/01/26/ggplot2-quick-heatmap-plotting/">ggplot2-quick-heatmap-plotting</a> and <a href="http://biostars.org/p/47432/">Constructing an Heatmap of "Distance of binding region relative to TSS"</a>.</p>

<p>Cheers</p>
