title: Creating a heatmap for differential gene expression using heatmap.2
body: <p>I am trying to create a heat map of different genes and keep running into the issue that my data is not being read as numeric. I think this is because the first column is gene names and the next 6 are the values. I have tried as.matrix, as.numeric, &amp; melt to get it to work, and I haven't been successful yet. Sample code would look like the following (I think).
  <code>dat = (gene = c(&quot;gene1&quot; , &quot;gene2&quot; , &quot;gene3&quot; , &quot;gene4&quot;) , sample1 = c(1.3, -.6, .05, .69), sample2 = c(1.8,.05,-.98, .42))</code></p>