title: How to get R plot to plot variable on heat.color scale
body: <p>I'm plotting data in R. I'm running the following two commands:</p>
  
  <pre><code>plot(x = df$Latitude, df$Longitude, col = heat.colors(nrow(df)), type = "p")
  
  plot(x = df$Latitude, df$Longitude, col = df$feature, type = "p")
  </code></pre>
  
  <p>The first line plots the points along a color gradient (points with higher values are red, points with lower values are yellow) and the second line plots data with color dictated by the int values given by <code>features</code>. </p>
  
  <p>However, I want to combine both such that I'm plotting points with colors on a scale using the numeric values from <code>feature</code>. In some sense, I want to pass two arguments to <code>col</code>. How can I do this?</p>