title: Barplot with multiple columns in R
body: <p>New to R and trying to figure out the barplot.<br />
  I am trying to create a barplot in R that displays data from 2 columns that are grouped by a third column.</p>
  <p>DataFrame Name: <code>SprintTotalHours</code></p>
  <p>Columns with data:</p>
  <pre><code>OriginalEstimate,TimeSpent,Sprint
  178,471.5,16.6.1
  210,226,16.6.2
  240,195,16.6.3
  </code></pre>
  <p>I want a barplot that shows the <code>OriginalEstimate</code> next to the <code>TimeSpent</code> for each sprint.
  I tried this but I am not getting what I want:</p>
  <pre><code>colours = c(&quot;red&quot;,&quot;blue&quot;)
  
  barplot(as.matrix(SprintTotalHours),main='Hours By Sprint',ylab='Hours', xlab='Sprint' ,beside = TRUE, col=colours)
  
  abline(h=200)
  </code></pre>
  <p>I would like to use base graphics but if it can't be done then I am not opposed to installing a package if necessary.</p>
  <p><img src="https://i.stack.imgur.com/ZYT2A.png" alt="Sweet Paint Skills" /></p>