Example population dataset A simulated population dataset with 400 rows covering 50 years and 8 age groups. Designed for line, area, and stacked bar plot examples.
Source:R/data.R
example_population.RdExample population dataset A simulated population dataset with 400 rows covering 50 years and 8 age groups. Designed for line, area, and stacked bar plot examples.
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