show_prdseason {wqtrends} | R Documentation |
Plot predictions for GAMs over time, by season
Description
Plot predictions for GAMs over time, by season
Usage
show_prdseason(mod, ylab, base_size = 11, xlim = NULL, ylim = NULL)
Arguments
mod |
input model object as returned by |
ylab |
chr string for y-axis label |
base_size |
numeric indicating base font size, passed to |
xlim |
optional numeric vector of length two for x-axis limits |
ylim |
optional numeric vector of length two for y-axis limits |
Value
A ggplot
object
Examples
library(dplyr)
# data to model
tomod <- rawdat %>%
filter(station %in% 34) %>%
filter(param %in% 'chl') %>%
filter(yr > 2015)
mod <- anlz_gam(tomod, trans = 'log10')
show_prdseason(mod, ylab = 'Chlorophyll-a (ug/L)')
[Package wqtrends version 1.4.2 Index]