district_barplot.Rd
Create district bar plot
district_barplot(
naomi_output,
indicator,
age,
sex_disag,
level = NULL,
calendar_quarter = 2,
label_format,
x_title = NULL,
fig_title = NULL,
legend_title = NULL,
colour_palette = "blue",
above_label = t_("ABOVE"),
below_label = t_("BELOW")
)
Naomi output object or path to naomi output zip folder
Indicator to plot
Age group to plot
Sexes to plot
Area level to plot, default all
Naomi projection quarter to filter data to, default is calendar_quarter_t2
Label format for y labels
Title for the figure x axis, blank by default
Title for the figure, blank by default,
Title for the legend
Names or hexcode value for colours to differentiate districts with values above and below the national average. Can be specified as a preset colour palette using "red", "green" and "blue" or manually as a named list: cols <- c(above_colour = "red", below_colour = "blue").
Label for districts with values higher than national average, default is "Above"
Label for districts with values higher than national average, default is "Below"
District barplot