
AFP case map
generate_afp_case_map.RdGenerates a map of AFP cases, excluding any with pending classification.
Usage
generate_afp_case_map(
afp.all,
ctry.shape,
prov.shape,
start_date,
end_date = lubridate::today(),
output_path = Sys.getenv("DR_FIGURE_PATH")
)Arguments
- afp.all
sfAFP linelist containing point geometry. This isctry.data$afp.all, which is an output of eitherextract_country_data()andinit_dr().- ctry.shape
sfCountry shapefile in long format.- prov.shape
sfProvince shapefile in long format.- start_date
strStart date of analysis.- end_date
strEnd date of analysis. Default is today's date.- output_path
strLocal path where to save the figure to.
Examples
if (FALSE) { # \dontrun{
ctry.data <- init_dr("algeria")
ctry.shape <- load_clean_ctry_sp(ctry_name = "ALGERIA", type = "long")
prov.shape <- load_clean_prov_sp(ctry_name = "ALGERIA", type = "long")
generate_afp_case_map(ctry.data, ctry.shape, prov.shape, "2023-12-31")
} # }