
Country map with province populations
generate_pop_map.RdThe map displays the U15 population for each province for a country.
Usage
generate_pop_map(
ctry.data,
ctry.shape,
prov.shape,
end_date,
output_path = Sys.getenv("DR_FIGURE_PATH"),
caption_size = 11
)Arguments
- ctry.data
listLarge list containing country polio data. This is the output ofextract_country_data()orinit_dr().- ctry.shape
sfCountry shape file in long format.- prov.shape
sfProvince shape file in long format.- end_date
strEnd date of the analysis.- output_path
strLocal path 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")
generate_pop_map(ctry.data, ctry.shape, prov.shape, "2023-12-31")
} # }