title: Heatmap positions square
body: <p>I have created a heatmap using the heatmap.2 function is R. I would like my individual positions to be square, now some how the positions seems to be rectangular, is there any way to make the positions squared? </p>
  
  <p>My R code is as below and the heatmap image is attached. </p>
  
  <pre><code> &gt; library(gplots)
   &gt; file=read.table("Heatfile_Av_Av.txt", sep="\t", header=TRUE, row.names=1)
   &gt; file[is.na(file)]&lt;-0
   &gt; data_matrix&lt;-as.matrix(file)
   &gt; heatmap.2(data_matrix, scale="none",dendrogram="none", col=grey(seq(1,0,-0.01)),      
   +           trace="none", Rowv=NA, Colv=NA, main="PB2 VS PB1")
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/SUzSG.png" alt="enter image description here"></p>