title: assign colors to a range of values
body: <p>A quick question,</p>
  
  <p>I have a vector with numbers, e.g:</p>
  
  <pre><code>values &lt;- c(0.104654225, 0.001781299, 0.343747296, 0.139326617, 0.375521201, 0.101218053)
  </code></pre>
  
  <p>and I want to assign a gradient scale to this vector, I know that I can do it with </p>
  
  <pre><code>gray(values/(max(values))
  </code></pre>
  
  <p>but I would like to use a <em>blue colour scale</em>, for example using <code>colorRampPalette</code> or something similar,</p>
  
  <p>Thanks</p>
  
  <p>I've noticed that there are several questions with similar topics but they map intervals and I would like to map colours to numeric values</p>