Create a Population Pyramid Visualization
plot_population_pyramid.Rd
Create a Population Pyramid Visualization
Usage
plot_population_pyramid(
df,
year,
scenario,
difference = FALSE,
split_gender = TRUE,
show_total = TRUE,
show_disability = TRUE,
show_disease = TRUE,
alpha = 0.8
)
Arguments
- df
A data frame containing batch output results from DYNAMO-HIA.
- year
The specific year to plot.
- scenario
The index of the scenario to plot.
- difference
Logical, whether to show differences from reference scenario (default
FALSE
).- split_gender
Logical, whether to split data by gender (default
TRUE
).- show_total
Logical, whether to display total population (default
TRUE
).- show_disability
Logical, whether to display disability data (default
TRUE
).- show_disease
Logical, whether to display disease data (default
TRUE
).- alpha
Transparency level for plot elements (default 0.8).