Skip to contents

Stacked bar plot of notifications by reference date, coloured by delay group.

Usage

enw_plot_delay_counts(pobs, delay_group_thresh, facet = TRUE)

Arguments

pobs

A preprocessed data object as produced by enw_preprocess_data().

delay_group_thresh

A numeric vector defining left-closed interval thresholds for delay groups.

facet

Logical. When TRUE (the default), plots with more than one .group are automatically wrapped by group. Set to FALSE to disable and add a custom facet layer.

Value

A ggplot2 plot.

Examples

pobs <- enw_example("preprocessed_observations")
enw_plot_delay_counts(pobs, c(0, 2, 5, 10, 21))