
AFP cases by province and year
generate_afp_prov_year.RdGenerates a tile plot for the number of AFP cases per month by province.
Usage
generate_afp_prov_year(
afp.by.month.prov,
start_date,
end_date = lubridate::today(),
output_path = Sys.getenv("DR_FIGURE_PATH"),
.height = 5
)Arguments
- afp.by.month.prov
tibbleTable summarizing AFP cases by month and province. This is the output ofgenerate_afp_by_month_summary().- start_date
strStart date of the analysis.- end_date
strEnd date of the analysis. By default, it displays the most recent date.- output_path
strLocal path to output the figure.- .height
intChange the height of the figure. Defaults to 5.
Examples
if (FALSE) { # \dontrun{
ctry.data <- init_dr("algeria")
afp.by.month <- generate_afp_by_month(ctry.data$afp.all.2, start_date, end_date)
afp.by.month.prov <- generate_afp_by_month_summary(
afp.by.month, ctry.data,
start_date, end_date, "prov"
)
generate_afp_prov_year(afp.by.month.prov, start_date, end_date)
} # }