Skip to contents

A simulated population dataset with 400 rows covering 50 years and 8 age groups. The youngest groups shrink over the period while those over 45 grow, so the population visibly ages in a stacked area plot (particularly one scaled to each year's total). Used as the default data for plotthis_AreaPlotApp().

Usage

example_population

Format

A data frame with 400 rows and 4 columns:

year

Year of the population record (factor: 1975–2024)

age_group

Age group category (factor: 0-9, 10-17, 18-34, 35-44, 45-54, 55-64, 65-74, 75+)

count

Population count for the given year and age group

record_id

Unique identifier for each population record

Source

Generated in data-raw/generate_example_data.R.

Author

Jared Andrews