title: How do I have the standard errors around regression lines in R with multiple colours in the same plot?
body: <p>I'm using <code>ggplot</code> to plot several pieces of data on the same graph. Below, each line is a time point and has different color, which I've manually selected using the <code>scale_color_manual</code> function. I'd like to include <code>standard error</code> but have the standard error colour match the color of the regression line. </p>
  
  <p>Below I've edited the color of standard error to red by changing the 'fill' in the geom_smooth function. But don't know how to change it so each line and error match.</p>
  
  <p><a href="https://i.stack.imgur.com/NheHj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NheHj.png" alt="enter image description here"></a></p>
  
  <pre><code>ggplot(data, aes(x=log10(x), y=y, color=factor(Time)))+ 
    geom_smooth(method="loess", span=2, fill="red") +
    facet_wrap(~Condition)+
    scale_color_manual(name="Time",values=c("red","blue","green"))
  </code></pre>