title: how to place colorlegend (corrplot) in graphic
body: <p>I am using <code>corrplot</code> to create a correlation heatmap, but I don't like the default legend - it is too big. So I was trying to use the <code>colorlegend()</code> to add the legend after I create the plot (and disable the default legend with <code>cl.pos="n"</code>).</p>
  
  <p>Only problem is that I can't figure out how to change the position of the legend - it ends up on the lower left. Ideally, I could place it on the top right, but I looked through the options for <code>colorlegend</code> and plot and can't figure this out.</p>
  
  <p>For example:</p>
  
  <pre><code># load libraries and create color scale
  library(corrplot)
  library(RColorBrewer)
  scalebluered &lt;- colorRampPalette(brewer.pal(8, "RdBu"))(8)
  
  # get data into correlation matrix
  data(mtcars)
  cars.matrix &lt;- as.matrix(mtcars[c(2:8)])
  cars.corr &lt;- cor(cars.matrix)
  
  # plot it
  corrplot(cars.corr, method="shade", shade.col=NA, tl.col="black", 
           tl.srt=45, addgrid.col="black", type="lower", diag=FALSE, cl.pos="n")
  
  # add legend
  colorlegend(scalebluered, c(seq(-1,1,.25)), align="l", vertical=TRUE, addlabels=TRUE)
  </code></pre>
  
  <p>output: <a href="http://i42.tinypic.com/14wsqc0.png" rel="nofollow noreferrer">http://i42.tinypic.com/14wsqc0.png</a></p>