title: Overlay bar graphs in ggplot2
body: <p>I'm trying to overlay bar graphs in <code>ggplot2</code></p>
  
  <p>My current code produces a bar plot but they are stacked on top of each other. I dont want this, I would like them overlaid so I can see the differences in each bar height.</p>
  
  <p>Code:</p>
  
  <pre><code>library(ggplot2)
  library(reshape)
  
  
  x = c("Band 1", "Band 2", "Band 3")
  y1 = c("1","2","3")
  y2 = c("2","3","4")
  
  to_plot &lt;- data.frame(x=x,y1=y1,y2=y2)
  melted&lt;-melt(to_plot, id="x")
  
  print(ggplot(melted,aes(x=x,y=value,fill=variable)) + geom_bar(stat="identity", alpha=.3))
  </code></pre>
  
  <p>Stacked output:</p>
  
  <p><img src="https://i.stack.imgur.com/dXVTA.png" alt="enter image description here"></p>