title: Determing slope of multiple lines in the same geom_point graph in ggplot2
body: <p><a href="https://i.stack.imgur.com/f5MlY.png" rel="nofollow noreferrer">Columns and first rows of code</a>
  I have several different <code>geom_smooth(method="glm")</code> lines in the same <code>geom_point</code> graph in <code>ggplot2</code>. I'm looking to determine the regression equation for each line, including the slope equation. I found a <a href="https://stackoverflow.com/questions/7549694/adding-regression-line-equation-and-r2-on-graph">similar post</a> but I'm still having some problems. My code is:</p>
  
  <pre><code>native &lt;- read.csv("native.gather.C4C5C6C7.csv")
  
  ggplot(native, aes(x=YearsPostRelease, y=PercentNative, col=FieldType, linetype=FieldType)) + 
      geom_point(size=0.7) + 
      geom_smooth(data = native, 
                  method ="glm", alpha = 0, show.legend = FALSE, linetype = 'solid') +
      scale_x_continuous(breaks = c(0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55)) +
      scale_y_continuous(limits = c(0, 100), 
                         breaks = c(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100)) + 
      ggtitle("Percent Native Through Time")
  </code></pre>
  
  <p>Thanks in advance!</p>