title: r- how to edit elements on x axis in image.plot
body: <p>I have created a image plot for this data:</p>
  
  <pre><code>sample
           p         p.1         p.2         p.3         p.4
    p    1.0000000  0.24077171 -0.66666667 -0.49009803  0.61237244
    p.1  0.2407717  1.00000000  0.09028939 -0.83444087  0.14744196
    p.2 -0.6666667  0.09028939  1.00000000  0.21004201  0.10206207
    p.3 -0.4900980 -0.83444087  0.21004201  1.00000000 -0.08574929
    p.4  0.6123724  0.14744196  0.10206207 -0.08574929  1.00000000
  </code></pre>
  
  <p>Using this code:</p>
  
  <pre><code>  image.plot(sample,col=redblue(191), zlim=c(-1,1))
  </code></pre>
  
  <p>I get this image:
  <img src="https://i.stack.imgur.com/dpChl.png" alt=""></p>
  
  <p>Instead of 0.0 0.2 0.4.. on x and y axes, I want p p.1 p.2...
  How do I get that that?
  Thank you for your time and consideration?</p>
  
  <p>My heatmap looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/kz4IL.png" alt="enter image description here"></p>
  
  <p>its not symmetric. Can you please fix this?
  I am using this code:</p>
  
  <blockquote>
    <p>shades=c(seq(-1,-0.5,length=64), seq(-0.5,0.5, length=64), seq(0.5,1,length=64))<br>
    heatmap.2(sample, dendrogram='none', symm=TRUE, Rowv=FALSE, Colv=FALSE, key=TRUE, cexCol=0.7, cexRow=1,scale="row", keysize=1, col=redblue(191), breaks=shades)</p>
  </blockquote>