title: Plotting confidence bands of a regression model with ggplot2
body: <p>I want to plot the 95% confidence bands for an exponential model with ggplot2. I use the following code for that</p>
  
  <pre><code>x &lt;- seq(1,3,0.01)
  y &lt;- exp(x)+ rnorm(n=length(x))
  exp.model &lt;- lm(log(y)~x)
  predictions &lt;- predict(exp.model, interval="confidence")
  df &lt;-  data.frame(x,y,exp(predictions))
  p &lt;- ggplot(data=df, aes(x=x, y=y)) +
       geom_point() + 
       geom_smooth(aes(y=fit, ymin=lwr, ymax=upr), stat="identity")
  print(p)
  </code></pre>
  
  <p>and I get the fitted exponential model with the confidence bands, but I get the warning</p>
  
  <pre><code>Warning: Ignoring unknown aesthetics: ymin, ymax
  </code></pre>
  
  <p>My question is how can avoid this warning?</p>