generate_day_bar_plot: Create a daily bar plot

View source: R/plots.R

generate_day_bar_plotR Documentation

Create a daily bar plot

Description

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

Usage

generate_day_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 (optional, default = NULL)

rref

reference value (optional, default = NULL)

relative

Boolean for plotting relative/absolute plots (optional, default = FALSE)

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 dates


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