generate_week_bar_plot2: Create a weekly bar plot by adding values from a specific...

View source: R/plots.R

generate_week_bar_plot2R Documentation

Create a weekly bar plot by adding values from a specific column

Description

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

Usage

generate_week_bar_plot2(
  date_vec,
  values,
  date_min,
  date_max,
  ylim = NULL,
  ylbl = "Values"
)

Arguments

date_vec

Vector containing dates

values

Vector containing values to sum

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

ylbl

String of the y-axis

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.