title: Fitting a GAM curve over a scatterplot?
body: <p>I have a scatterplot of total seal abundance (<code>Total</code>) against observation period (<code>Obsv_time</code>): </p>
  
  <pre><code>plot(Total ~ Obsv_time, data = R_Count)
  </code></pre>
  
  <p>I have already created a <code>gam</code> exploring total abundance with windspeed and tide:</p>
  
  <pre><code>gam.tot &lt;- gam(Total ~ s(Obsv_time, k = 5) + s(Windspeed) + Tide, 
                 family = poisson, correlation = corAR1(q=1), 
                 data = R_Count)
  </code></pre>
  
  <p>Variables <code>Total</code>, <code>Obsv_time</code> and <code>Windspeed</code> are continuous, while <code>Tide</code> is a factor, not sure if this makes a difference?</p>
  
  <p>I would like to fit the <code>gam</code> over the scatterplot to show abundance variation over time, I presume using <code>loess</code>?</p>
  
  <p>Thanks!</p>
  
  <p>**Update: Solved now, thank you! @patL</p>