title: Heatmap using R
body: <p>I am trying to plot heatmap of a matrix by reading data from a csv file.
  Here is how the code looks:</p>
  
  <pre><code>lda &lt;- read.csv('topic_word_matrix.data',sep=",")
  row.names(lda) &lt;- lda$topics
  lda &lt;- lda[,2:ncol(lda)]
  lda_matrix &lt;- data.matrix(lda)
  lda_heatmap &lt;- heatmap(lda_matrix, Rowv=NA, Colv=NA,col = cm.colors(256), scale="column", margins=c(5,10))
  </code></pre>
  
  <p>My input file looks like the following:</p>
  
  <pre><code>topics,jockin,limited,raining,magnetic,reallamarodom
  topic9,0.0,0.0,0.00671140939597,0.0022271714922,0.00234192037471
  topic2,0.1,0.0,0.02671140939597,0.0022271714922,0.00234192037471
  </code></pre>
  
  <p>I get a plot without any color and the following warning messages:</p>
  
  <pre><code>Warning messages:
  1: In min(x) : no non-missing arguments to min; returning Inf
  2: In max(x) : no non-missing arguments to max; returning -Inf
  </code></pre>
  
  <p>Does anyone has any clue what is possibly going wrong?</p>