tetratech / baytrends

Evaluate long-term trends in the Chesapeake Bay using a Generalized Additive Modeling (GAM) approach
https://tetratech.github.io/baytrends/
12 stars 4 forks source link

gamDiffPlot baseline/current mean x-axis location #66

Open jharcum opened 3 years ago

jharcum commented 3 years ago

Baseline and current means are plotted based on the below and is correct for 2-yr means:

por <- date.range + c(365*24*60*60,-365*24*60*60)

Need to update second term to allow for when analySpec$gamDiffNumChgYrs != 2 years.