pop_and_laborforce_by_age | R Documentation |
A test dataset containing percentage breakdowns of the population and labor force by various age buckets in 2010 and 2017.
pop_and_laborforce_by_age
A tibble. 12 rows and 4 variables:
Chr. Indicates the meaning of the data stored in 'value'. "population" or "laborforce".
Factor. 2010 or 2017.
Chr. The age bucket. Either 16-24, 25-54, or 55+.
Double. The value indicated by the other variables.
CMAP traded clusters report
# a grouped and stacked bar chart (via `interaction()`)
ggplot(pop_and_laborforce_by_age, aes(x = interaction(year, variable), y = value, fill = age)) +
geom_col(position = position_stack(reverse = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.