show_prddoy {wqtrends} | R Documentation |
Plot predictions for GAMs against day of year
show_prddoy(mod, ylab, size = 0.5, alpha = 1, base_size = 11)
mod |
input model object as returned by |
ylab |
chr string for y-axis label |
size |
numeric indicating line size |
alpha |
numeric from 0 to 1 indicating line transparency |
base_size |
numeric indicating base font size, passed to |
A ggplot
object
library(dplyr)
# data to model
tomod <- rawdat %>%
filter(station %in% 34) %>%
filter(param %in% 'chl')
mod <- anlz_gam(tomod, trans = 'log10')
show_prddoy(mod, ylab = 'Chlorophyll-a (ug/L)')