
Generate KPI NPAFP bar chart summary
generate_kpi_npafp_bar.RdGenerates a bar chart highlighting percentage of priority countries with 80% of 100,000+ under 15y pop districts achieving npAFP rate of >= 2/100,000.
Usage
generate_kpi_npafp_bar(c1, afp_data, output_path = Sys.getenv("KPI_FIGURES"))Arguments
- c1
tibbleOutput ofgenerate_c1_table().- afp_data
tibbleAFP dataset. List item of the output ofget_all_polio_data().- output_path
strFolder location to output the image to.
Examples
if (FALSE) { # \dontrun{
raw_data <- get_all_polio_data()
c1 <- generate_c1_table(raw_data, "2021-01-01", "2023-12-31", rolling = TRUE)
plot <- generate_kpi_npafp_bar(c1, raw_data$afp)
} # }