pop_pyramid_outputs: Create population pyramid plot

View source: R/report-plots.R

pop_pyramid_outputsR Documentation

Create population pyramid plot

Description

Create population pyramid plot

Usage

pop_pyramid_outputs(
  naomi_output,
  calendar_quarter = 2,
  indicator,
  colour_palette = "blue",
  x_title = NULL,
  y_title = t_("AGE_GROUP"),
  fig_title = NULL,
  legend_label = abs,
  masc_label = t_("SEX_MALE"),
  fem_label = t_("SEX_FEMALE")
)

Arguments

naomi_output

Naomi output object or path to naomi output zip folder

calendar_quarter

Naomi projection quarter to filter data to, default is calendar_quarter_t2

colour_palette

Names or hexcode value for right and left side of population pyramid. Can be specified as a preset colour palette using "red", "green" and "blue" or manually as a named list: cols <- c( left_clour = "red", right_colour = "blue").

x_title

Title for the figure x axis, blank by default

y_title

Title for the figure y axis, default is "Age Group"

fig_title

Title for the figure, blank by default,

masc_label

Label for male sex group, default is "Male"

fem_label

Label for female sex group, default is "Female"

Value

Pop pyramid


mrc-ide/naomi documentation built on April 10, 2024, 2:13 p.m.