
Epicurve of AFP cases by year
generate_afp_epicurve.RdGenerates an epicurve line graph of AFP cases by year.
Usage
generate_afp_epicurve(
ctry.data,
start_date,
end_date = lubridate::today(),
output_path = Sys.getenv("DR_FIGURE_PATH")
)Arguments
- ctry.data
listLarge list containing country polio data. This is the output of eitherextract_country_data()orinit_dr().- start_date
strStart date of analysis.- end_date
strEnd date of analysis. By default, it is up to the current date.- output_path
strLocal path location to save the figure.
Examples
if (FALSE) { # \dontrun{
ctry.data <- init_dr("algeria")
generate_afp_epicurve(ctry.data, start_date)
} # }