show_sumtrndseason2 {wqtrends} | R Documentation |
Plot seasonal rates of change in quarters based on average estimates for multiple window widths
Description
Plot seasonal rates of change in quarters based on average estimates for multiple window widths
Usage
show_sumtrndseason2(
mod,
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 |
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 is similar to show_sumtrndseason
but results are grouped into seasonal quarters as four separate plots with a combined color scale.
Value
A ggplot2
plot
See Also
Other show:
show_sumtrndseason()
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_sumtrndseason2(mod, justify = 'center', win = 2:3)
[Package wqtrends version 1.4.2 Index]