show_sumtrndseason {wqtrends} | R Documentation |
Plot seasonal rates of change based on average estimates for multiple window widths
Description
Plot seasonal rates of change based on average estimates for multiple window widths
Usage
show_sumtrndseason(
mod,
doystr = 1,
doyend = 364,
justify = c("center", "left", "right"),
win = 5:15,
txtsz = 6,
cols = c("lightblue", "lightgreen"),
base_size = 11
)
Arguments
mod |
input model object as returned by |
doystr |
numeric indicating start Julian day for extracting averages |
doyend |
numeric indicating ending Julian day for extracting averages |
justify |
chr string indicating the justification for the trend window |
win |
numeric vector indicating number of years to use for the trend window |
txtsz |
numeric for size of text labels inside the plot |
cols |
vector of low/high colors for trends |
base_size |
numeric indicating base font size, passed to |
Details
This function plots output from anlz_sumtrndseason
.
Value
A ggplot2
plot
See Also
Other show:
show_sumtrndseason2()
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_sumtrndseason(mod, doystr = 90, doyend = 180, justify = 'center', win = 2:3)
[Package wqtrends version 1.4.2 Index]