title: Plotting a grouped bar plot in R when you have yes/no columns
body: <p>I have a small table like so:</p>
  
  <p><a href="https://i.stack.imgur.com/ptkrj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ptkrj.png" alt="enter image description here"></a></p>
  
  <p>I wish to plot this information as a grouped bar chart in R. However, for that to work correctly, a 'success' row is required above the yes/no columns, which is easy to do in excel but I am not sure how to place that in R. This is my code currently. How do I add a row above where the no/yes columns are?</p>
  
  <pre><code>status1 &lt;- c("currently", "missing", "never", "previously")
  no1 &lt;- c(107, 8, 131, 142)
  yes1 &lt;- c(104, 8, 232, 132)
  tata &lt;- data.frame(status1, no1, yes1)
  
  ggplot(tata, aes(fill=yes1, y=no1, x=status1)) + 
    geom_bar(position="dodge", stat="identity")
  </code></pre>