title: Stacked bar plot in R with the positive and negative values
body: <p>I would like to plot a stacked bar plot in R and my data looks as such:</p>
  
  <p><a href="https://i.stack.imgur.com/VPswx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VPswx.png" alt="enter image description here"></a></p>
  
  <p>This table is the values against date and as it can be seen, there are repetitive dates with different sides. I would like to plot a bar plot using this data.</p>
  
  <pre><code>combined = rbind(x,y)
  combined = combined[order(combined$Group.1),]
  barplot(combined$x,main=paste("x vs y Breakdown",Sys.time()),names.arg = combined$Group.1,horiz = TRUE,las=2,xlim=c(-30,30),col = 'blue',beside = True)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YyZGp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YyZGp.png" alt="enter image description here"></a></p>
  
  <p>Want a stacked plot where I can see the values against dates. How do change my code?</p>