Skip to contents

Generates a plot to visualize health coverage data across subnational units, distinguishing between the national mean and subnational coverage. The Mean Absolute Difference to the Mean (MADM) is displayed as an indicator on the y-axis. Titles, subtitles, and labels dynamically adjust based on the chosen indicator, denominator, and level.

Usage

# S3 method for class 'cd_inequality'
plot(x, indicator, denominator = c("dhis2", "anc1", "penta1"), ...)

Arguments

x

A cd_inequality object returned by calculate_inequality().

indicator

Character. Indicator to plot

denominator

Character. The denominator to use

...

Additional arguments passed to the plotting function.

Value

A ggplot object displaying the subnational health coverage plot.

Examples

if (FALSE) { # \dontrun{
  data <- calculate_inequality(.data, "Kenya", admin_level = "district",
                              indicator = "measles1", denominator = "penta1")
  plot(data)
} # }