plot_year_comp: plot_year_comp

View source: R/plot_year_comp.R

plot_year_compR Documentation

plot_year_comp

Description

plot the output of parse_year_comp()

Usage

plot_year_comp(
  df,
  type = c("median", "smooth", "smoothmedian")[1],
  xlim = c(0, 365),
  vline_pos = NULL,
  xlab = "Day of Year",
  strip_text_y = NULL,
  annotations = TRUE,
  alpha = 0.2,
  ...
)

Arguments

df

output of parse_year_comp()

type

one of "median","smooth","smoothmedian"

  • median - plot the rolling median calculated by parse_year_comp()

  • smooth - plot a loess smooth through the daily median values

  • smoothmedian - plot a loess smooth through the rolling median values

xlim

x axis limits via ggplot2::coord_cartesian()

vline_pos

numeric vector. add vertical lines at the given day of year

xlab

x axis label

strip_text_y

override the strip text on the y axis

annotations

logical, show plot subtitles? default true

alpha

control the alpha of the underlying timeseries

...

Author(s)

W. S. Drysdale


willdrysdale/AQVisR documentation built on July 24, 2022, 8:52 a.m.