
Map of high priority health facilities
generate_iss_map.RdGenerates a map of high priority health facilities across years based on ISS/eSURV data.
Usage
generate_iss_map(
iss.data,
ctry.shape,
prov.shape,
start_date,
end_date,
output_path = Sys.getenv("DR_FIGURE_PATH")
)Arguments
- iss.data
tibbleISS/eSurv data. Ensure that theiss.datais part ofctry.dataand has been cleaned byclean_iss_data().- 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.- output_path
strLocal path where to save the figure to.
Examples
if (FALSE) { # \dontrun{
iss_path <- "C:/Users/ABC1/Desktop/iss_data.csv"
ctry.data <- init_dr("algeria", iss_data_path = iss_path)
ctry.data$iss.data <- clean_iss_data(ctry.data)
ctry.shape <- load_clean_ctry_sp(ctry_name = "ALGERIA", type = "long")
prov.shape <- load_clean_prov_sp(ctry_name = "ALGERIA", type = "long")
generate_iss_map(
ctry.data$iss.data, ctry.shape, prov.shape,
"2021-01-01", "2023-12-31"
)
} # }