title: R - trying to make a heatmap from a matrix (all the values in the matrix are the same) using heatmap.2
body: <p>I trying to use heatmap.2 to make a heatmap from matrix. My problem is that I am using it inside a loop and once in a while all of the values in the matrix are the same (e.g. all of the values are zeros) and I get the error message: "Error in axis(1, at = xv, labels = lv) : no locations are finite"</p>
  
  <p>Is there anyway to avoid this?</p>