title: Creating a heat map from (x,y) corrdinates in R
body: <p>I have (x,y) data in a text file (data.csv) I would like to make into a heat map.</p>
  
  <pre><code>X   Y
  -60 -18
  60  -62
  7   14
  -22 -60
  59  58
  29  22
  -58 -18
  60  -61
  7   14
  -21 -59
  61  59
  29  22
  -57 -18
  -22 -59
  59  60
  29  24
  -56 -17
  61  -60
  8   16
  -20 -58
  62  60
  30  23
  </code></pre>
  
  <p>Ideally I would like to be able to import the text file and save it to a image file (PNG or JPG) that is 450px x 200px.</p>
  
  <p>The heat map needs to be more like one you'd find on Google Maps (<a href="http://dylanvester.com/image.axd?picture=WindowsLiveWriter/CreatingHeatMapswith.NET2.0C_136B6/HeatMap_3.jpg" rel="noreferrer">example here)</a> than a matrix (<a href="http://flowingdata.com/2010/01/21/how-to-make-a-heatmap-a-quick-and-easy-solution/" rel="noreferrer">example here</a>).</p>
  
  <p>Thanks in advance.</p>