plot_age_pyramid | R Documentation |
Plot Age Pyramid
plot_age_pyramid(data, female, prop = T, w = 0.5, scales = list())
data |
data.frame with (age.cat, gender, pop, prop) |
female |
bool female rows |
prop |
bool, if TRUE proportion are [0;1], if FALSE are percent [0;100] |
w |
width factor |
scales |
list of named char vector for "pop" & "cohort" names |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.