generate_week_bar_plot: Create a weekly bar plot

View source: R/plots.R

generate_week_bar_plotR Documentation

Create a weekly bar plot

Description

generate_week_bar_plot() creates an absolute or a relative bar plot.

Usage

generate_week_bar_plot(
  date_vec,
  date_min,
  date_max,
  ylim = NULL,
  ylbl = "Frequencies",
  rref = NULL,
  relative = FALSE,
  date_vec_ref = NULL
)

Arguments

date_vec

Vector containing dates.

date_min

Start date of the plot.

date_max

End date of the plot.

ylim

Numeric vector of length 2 that contains the min and max values of the y-axis (optional, default = NULL).

ylbl

String of the y-axis.

rref

reference value (optional, default = NULL).

relative

Boolean for plotting relative/absolute plots.

date_vec_ref

Vector containing reference dates (optional, default = NULL).

Value

This function returns a ggplot object which contains a bar plot of frequencies by week.


Thaliehln/timci documentation built on April 8, 2024, 3:38 p.m.