title: R: changing color of stacked barplot
body: <pre><code>library(ggplot2)
  df2 &lt;- data.frame(supp=rep(c("VC", "OJ"), each=3),
                  dose=rep(c("D0.5", "D1", "D2"),2),
                  len=c(6.8, 15, 33, 4.2, 10, 29.5))
  head(df2)
  ggplot(data=df2, aes(x=dose, y=len, fill=supp)) +
    geom_bar(stat="identity")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/vXzBM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vXzBM.png" alt="enter image description here"></a></p>
  
  <p>I have a simple stacked barplot, and I would like to change the colors manually. More specifically, I would like to flip the colors used for <code>fill = supp</code> (i.e. teal for OJ instead). I've trid adding a <code>color = ...</code> parameter into <code>geom_bar</code> but that simply outlines the barplots instead of coloring them in. </p>