# NOT RUN {
data(popch)
pyramid_chart(popch, age, pop, sex)
## Change bar colors
pyramid_chart(popch, age, pop, sex, bar_colors = c("darkgreen", "darkorange"))
## Change x axis label and add title
pyramid_chart(popch, age, pop, sex, xlab = "Population", title = "Switzerland 2020")
# }
Run the code above in your browser using DataLab