chart
density plot
also: kernel density plotSmoothed estimate of a continuous variable's distribution.
courbe de densité
Estimation lissée de la distribution d'une variable continue.
Classification
- chart
- lines and areas › statistical curves
- distribution
Channels
position on common scale; main: density
area; secondary: probability (area under the curve)
Variants
ridgeline plotoffset by group
Attestation
- French term: Larmarange, guide-R: analysing survey data with R
- English definition: Data Visualisation Guide, data.europa.eu
Scientific literature
OpenAlex: 3 466 papers since 1960, 38% in the last five years; mostly in Physics and Astronomy, Engineering, Medicine
Seminal references
- formalization (1956) Rosenblatt (1956). Remarks on some nonparametric estimates of a density function. The Annals of Mathematical Statistics (4 703 citations); Wikipedia in English
R packages
- R
ggplot2::geom_density(); GitHub 7 025 stars; last commit 2026-10; paper (33 455 citations) - R
ggpointdensity::geom_pointdensity(); GitHub 455 stars; last commit 2025-11; paper (27 citations)
R code of the ggplot2 example
library(ggplot2)
library(dplyr)
library(palmerpenguins)
flippers <- penguins |>
filter(!is.na(flipper_length_mm))
peaks <- flippers |>
group_by(species) |>
summarise(d = list(density(flipper_length_mm))) |>
mutate(x = sapply(d, \(d) d$x[which.max(d$y)]),
## Moved right, off the Adelie curve.
x = x + ifelse(species == "Chinstrap", 4, 0),
y = sapply(d, \(d) max(d$y)))
p <- ggplot(flippers, aes(x = flipper_length_mm, colour = species, fill = species)) +
geom_density(alpha = 0.25, linewidth = 0.6) +
geom_text(data = peaks, aes(x = x, y = y, label = species), vjust = -0.6, size = 3.5) +
scale_x_continuous(labels = lex_number, breaks = lex_break_breaks, expand = lex_break_expand) +
scale_y_continuous(expand = expansion(mult = c(0, 0.12))) +
labs(title = "Gentoo penguins have the longest flippers",
x = "Flipper length (mm)", y = "Density",
caption = "Data: palmerpenguins (Horst, Hill & Gorman 2020)") +
theme_lex_viz(grid = "x", break_not_zero = "x") +
theme(legend.position = "none")Sources (23)
43 occurrences in the corpus; indexed by 3 books
Show the 23 sources
- Computational statistics in data science
- Cook & Laa, Interactively Exploring High-Dimensional Data and Models in R, Chapman & Hall/CRC, 2026
- Data points: visualization that means something
- Data Visualisation Guide, data.europa.eu
- Data visualisation: a handbook for data driven design
- data-to-viz.com
- Exploratory Data Analysis: Descriptive Analysis, Visualization, and Dashboard Design (w...
- From data to viz
- Grosjean & Engels, Science des données biologiques I-III (University of Mons)
- Larmarange et al., analyse-R: introduction to survey analysis with R
- Larmarange, guide-R: analysing survey data with R
- LibreTexts Statistics, textbook chapters on charts
- Magrit user manual, French version (UAR RIATE, CNRS)
- More Practical Charts
- Open Visualization Academy, courses and newsletter (Cairo et al.)
- Progressive Data Analysis: Roadmap and Research Agenda
- Rakotomalala, statistics course notes (Université Lyon 2)
- utilitR, collaborative R documentation (Insee)
- Visualization of Time-Oriented Data
- Visualize This
- Wickham, Çetinkaya-Rundel & Grolemund, R for Data Science, 2nd ed., 2023
- Wickham, Navarro & Pedersen, ggplot2: Elegant Graphics for Data Analysis, 3rd ed. online↗
- Wilke, Fundamentals of Data Visualization, O'Reilly, 2019
Cite this entry
Stable addresshttps://dataviz.adrientaudiere.com/en/term/density-plot.html
ReferenceTaudière Adrien. 2026. density plot. In Visualization Vocabulary, version 1.0.0. IdEst. https://dataviz.adrientaudiere.com/en/term/density-plot.html
BibTeX
@incollection{taudiere2026-density-plot,
author = {Taudière, Adrien},
title = {density plot},
booktitle = {Visualization Vocabulary},
year = {2026},
version = {1.0.0},
publisher = {IdEst},
url = {https://dataviz.adrientaudiere.com/en/term/density-plot.html},
note = {CC0 1.0}
}Page created on 2026-10-13. Text last changed on 2026-10-22. Images last changed on 2026-11-12. Numbers computed on 2026-10-22.