library(dplyr)
# data to model
tomod <- rawdat %>%
filter(station %in% 34) %>%
filter(param %in% 'chl') %>%
filter(yr > 2015)
mod <- anlz_gam(tomod, trans = 'ident')
show_metseason(mod, doystr = 90, doyend = 180, yrstr = 2016, yrend = 2019,
ylab = 'Chlorophyll-a (ug/L)')
# \donttest{
# show seasonal metrics without annual trend
show_metseason(mod, doystr = 90, doyend = 180, yrstr = NULL, yrend = NULL,
ylab = 'Chlorophyll-a (ug/L)')
# omit years from the analysis
show_metseason(mod, doystr = 90, doyend = 180, yrstr = 2016, yrend = 2019,
yromit = 2017, ylab = 'Chlorophyll-a (ug/L)')
# }
Run the code above in your browser using DataLab