title: Create a barplot using ggplot
body: <p>Can you help me create the following barplot using the ggplot2 package and the data in the <code>mat</code> matrix?  </p>
  
  <pre><code>mat &lt;- matrix(c(70.93,78.58,78.72,69.24,62.53,43.85,83.49,70.00,78.30,78.11,71.16,63.82,47.37,89.87),ncol=2)
  colnames(mat) &lt;- c("Crude","Standardized")
  rownames(mat) &lt;- 2006:2012
  
  library(gplots)
  library(RColorBrewer)
  my_palette &lt;- palette(brewer.pal(7,"Set1"))
  
  barplot2(mat,
  main="Crude and Standardized Rates",
  xlab="Type", ylab="Rate", xlim=c(0,20), ylim=c(40,100),
  col=my_palette, beside=TRUE, plot.grid = TRUE, xpd=FALSE)
  legend(locator(1), rownames(mat), title ="Year",fill=my_palette)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/UMSEF.png" alt="enter image description here"></p>