Creates the basic template for a heatmap calendar in ggplot when using count data. The calendar will automatically expand the date contrains to full years. Can be supplied the output from daily_admissions.

create_calendar_template(x = NULL, date_boundaries = NULL)

Arguments

x

count data to be used in the calendar from daily_admissions

date

date column formatted to a POSIX date

count_column

counting column of integer type

date_boundaries

character vector of format YYYY-MM-DD (or something that is parsable by lubridate::ymd) defining the start and end dates of the calendar. If nothing is supplied, this is derrived from the data

Value

a tibble with correct week alignments for a calendar heatmap