title: Using color as the 3rd dimension
body: <p>I have 3 dimensions that I want to plot, and I want the third dimension to be color.</p>
  
  <p>This will be in R by the way. For instance, my data looks like this</p>
  
  <pre><code>x = [1,2,3,4,1,5,6,3,4,7,8,9]
  y = [45,32,67,32,32,47,89,91,10,12,43,27]
  z = [1,2,3,4,5,6,7,8,9,10,11,12]
  </code></pre>
  
  <p>I am trying to use filled.contour, but it giving me an error saying x and y must be in increasing order. But I'm not really sure how to arrange my data such that that is true. Because if I arrange x in increasing order, then y will not be in increasing order.</p>
  
  <p>It is also feasible for me to do a non-filled contour method where it is just data points that are colored. How can I do this in R. Any suggested packages? Please use specific examples. Thanks!</p>