title: Plot a vector of colors in R
body: <p>I have this vector of colours in R:</p>
  <pre><code>&quot;#88FF00&quot; &quot;#54FF00&quot; &quot;#FFFF00&quot; &quot;#13FF00&quot; &quot;#50FF00&quot; &quot;#87FF00&quot; &quot;#FDFB02&quot; &quot;#B8FF00&quot; &quot;#6DFF00&quot; 
  &quot;#ECFF00&quot; &quot;#CBFF00&quot; &quot;#EDFF00&quot; &quot;#39FF00&quot; &quot;#B7FF00&quot; &quot;#75FF00&quot; &quot;#65FF00&quot; &quot;#C2FF00&quot; &quot;#25FF00&quot; 
  &quot;#9AFF00&quot; &quot;#E6FF00&quot; &quot;#58FF00&quot; &quot;#E5CA1A&quot; &quot;#DEFF00&quot; &quot;#9AFF00&quot; &quot;#21FF00&quot; &quot;#35FF00&quot; &quot;#3AFF00&quot; 
  &quot;#D0912F&quot; &quot;#FF0000&quot; &quot;#F7EF08&quot; &quot;#40FF00&quot; &quot;#DA7325&quot; &quot;#D8B027&quot; &quot;#DAFF00&quot; &quot;#55FF00&quot; &quot;#F8F007&quot;
  &quot;#46FF00&quot; &quot;#69FF00&quot; &quot;#B8FF00&quot; &quot;#37FF00&quot; &quot;#32FF00&quot; &quot;#60FF00&quot; &quot;#7CFF00&quot; &quot;#00FF00&quot; &quot;#50FF00&quot; 
  &quot;#F3E60C&quot; &quot;#DFBE20&quot; &quot;#7FFF00&quot; &quot;#F7EF08&quot; &quot;#99FF00&quot; &quot;#13FF00&quot; &quot;#DA7325&quot; &quot;#13FF00&quot;
  </code></pre>
  <p>And I want to plot them in this order, something such as a heatmap. I had been toying with the image function but the colours are reordered and even modified by the image function.</p>
  <p>The code that I tried is the following, when cols is the vector of colors mentioned above:</p>
  <pre><code>  image(1:nrow(expressionOrdered), 1:ncol(expressionOrdered), as.matrix(expressionOrdered), col= cols,xlab=&quot;&quot;,ylab=&quot;&quot;)
  </code></pre>