title: How to set the line color of geom_point in ggplot2 to the fill color of geom_smooth?
body: <p>I am using ggplot2 in R. I would like to specify the line color of <code>geom_point()</code> to use the fill color of <code>geom_smooth()</code> automatically based on the used theme. (In my actual data there are many more groups of lines each having their own default themed color.) How can I do that?</p>
  
  <pre><code>library(ggplot2)
  data(mtcars)
  mtcars$mpg &lt;- 1
  ggplot(mtcars,aes(x=hp,y=wt,fill=mpg,colour=mpg)) +
    geom_point() +
    geom_smooth()
  </code></pre>