title: How do i make a 2 dimensional scatter plot in R witht he 3rd dimension representing a color spectrum reflecting z values?
body: <p>I am trying to make a 2 dimensional scatter plot in R with the 3rd dimension representing a color spectrum reflecting values. I have been working on this for 2 weeks and no blogs have helped.  Here is my dataset: </p>
  
  <pre><code>x=c(0,0,0,0,264,330,594,726,825,825,2145,2475,3630,5082,8250,10725)
  y=c(450,540,2250,630,540,2160,1170,2340,1080,738,540,648,900,900,2340,1152)   
  z=c(.017778,0,.079365,.037333,0,0,.052991,0,0,.009259,.048148,0,0,0,.004274,.003472)
  </code></pre>
  
  <p>I have tried this code...</p>
  
  <pre><code>jet.colors &lt;-colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan","#7FFF7F", "yellow", "#FF7F00", "red", "#7F0000"))
  
  plot(x,y, col=jet.colors(12)[z], ylim=c(0,100), pch=20, cex=2)
  
  legend(8.5,90, col = jet.colors(12)[z], legend=z, pch=15)
  </code></pre>
  
  <p>... but no points appear when i do so, just a blank xy plane. I have had some success with ggplot2 package but it looks ugly and I want to be able to do it with the simple plot command. I have successfully made 3d graphs from scatterplot3d, wireframe, and countours, but again these are over complicated and ugly Someone please help I know I am missing something simple like perhaps my z values being zeros or less than one.</p>