
Map district U15 populations
generate_dist_pop_map.RdGenerates a map of U15 district populations, with population centers and roads.
Usage
generate_dist_pop_map(
ctry.data,
ctry.shape,
prov.shape,
dist.shape,
end_date,
output_path = Sys.getenv("DR_FIGURE_PATH"),
caption_size = 11
)Arguments
- ctry.data
listLarge list of polio country data. This is the output of eitherextract_country_data()orinit_dr().- ctry.shape
sfShapefile of country in long format.- prov.shape
sfShapefile of province in long format.- dist.shape
sfShapefile of district in long format.- end_date
strEnd date of the analysis.- output_path
strLocal path of where to save the figure.- caption_size
numericSize of the caption. Default is11.
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")
dist.shape <- load_clean_dist_sp(ctry_name = "ALGERIA", type = "long")
generate_pop_map(ctry.data, ctry.shape, prov.shape, dist.shape, "2023-12-31")
} # }