
chart
population pyramid
also: age pyramidBack-to-back bars comparing two groups by age class.
Classification
- chart
- bars › diverging bars
- distribution; Financial Times Visual Vocabulary
- the name evokes: building
Channels
position on common scale; main: count (on either side of the central axis)
length; main: count
spatial region; main: age group
color hue; secondary: sex/gender
Attestation
- English definition: Semiology of graphics: diagrams, networks, maps
Scientific literature
OpenAlex: 1 331 papers since 1964, 24% in the last five years; mostly in Social Sciences, Medicine, Economics, Econometrics and Finance; Wikidata
Seminal references
R packages
- R
ggplot2::geom_col(); GitHub 7 025 stars; last commit 2026-10; paper (33 455 citations) - R
apyramid::age_pyramid(); GitHub 20 stars; last commit 2023-02
R code of the ggplot2 example
library(ggplot2)
library(dplyr)
library(carData)
## The 1 046 passengers of known age, by ten-year age group: women to the
## left, men to the right.
ages <- TitanicSurvival |>
filter(!is.na(age)) |>
mutate(group = cut(age, seq(0, 80, by = 10), right = FALSE, include.lowest = TRUE,
labels = paste0(seq(0, 70, by = 10), "–", seq(9, 79, by = 10)))) |>
count(sex, group) |>
mutate(side = ifelse(sex == "female", -n, n))
p <- ggplot(ages, aes(x = side, y = group, fill = sex)) +
geom_col(width = 0.85) +
geom_vline(xintercept = 0, colour = "#535353", linewidth = 0.4) +
annotate("text", x = c(-150, 150), y = 7.5, label = c("Women", "Men"),
colour = c("#9b2367", "#2e7891"), size = 3.2) +
scale_fill_manual(values = c(female = "#9b2367", male = "#2e7891")) +
scale_x_continuous(labels = \(x) lex_number(abs(x)), limits = c(-240, 240)) +
labs(title = "Men in their twenties were the largest group on board",
subtitle = "The 1 046 Titanic passengers of known age, 1912, by age and sex",
x = "Passengers", y = "Age (years)",
caption = "Data: Titanic passenger list, via the carData R package") +
theme_lex_viz(grid = "x", arrows = "") +
theme(legend.position = "none")Sources (19)
51 occurrences in the corpus; indexed by 6 books
Show the 19 sources
- analysisfunction.civilservice.gov.uk
- app.flourish.studio
- Atlas of knowledge: anyone can map
- Cartography: thematic map design
- Data visualisation: a handbook for data driven design
- Data visualization handbook
- Data Viz Project
- datavizcatalogue.com
- datavizproject.com
- datawrapper.de↗
- Effective data visualization: the right chart for the right data
- Friendly & Wainer, A History of Data Visualization and Graphic Communication, Harvard University Press, 2021
- Information Graphics: A Comprehensive Illustrated Reference
- Milestones in the history of thematic cartography, statistical graphics, and data visua...
- Open Visualization Academy, courses and newsletter (Cairo et al.)
- Semiology of graphics: diagrams, networks, maps
- The grammar of graphics
- The infographic history of the world
- Wikipedia in English↗
Cite this entry
Stable addresshttps://dataviz.adrientaudiere.com/en-only/term/population-pyramid.html
ReferenceTaudière Adrien. 2026. population pyramid. In Visualization Vocabulary, version 1.0.0. IdEst. https://dataviz.adrientaudiere.com/en-only/term/population-pyramid.html
BibTeX
@incollection{taudiere2026-population-pyramid,
author = {Taudière, Adrien},
title = {population pyramid},
booktitle = {Visualization Vocabulary},
year = {2026},
version = {1.0.0},
publisher = {IdEst},
url = {https://dataviz.adrientaudiere.com/en-only/term/population-pyramid.html},
note = {CC0 1.0}
}Page created on 2026-10-13. Text last changed on 2026-11-10. Images last changed on 2026-11-12. Numbers computed on 2026-10-22.