View source: R/population_pyramid.R
population_pyramid | R Documentation |
This function assumes three variables in the dataset: 1. sex (i.e. 'Male' vs 'Female) 2. age_group 3. n (count)
population_pyramid(data)
data |
dataframe which must include three variables (sex, age_group, and n) |
pyramid plot as a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.