Visualization VocabularyDataviz vocabulary
Schéma : courbe de densité
Dessin : Adrien Taudière (CC0)
Exemple ggplot2 : courbe de densité
Adrien Taudière (CC0); code R ↓; données : palmerpenguins (Horst, Hill & Gorman 2020) (CC0)

graphique

courbe de densité

Estimation lissée de la distribution d'une variable continue.

density plot

also: kernel density plot

Smoothed estimate of a continuous variable's distribution.

Classification

  • graphique
  • courbes et aires › courbes statistiques
  • distribution

Canaux

Variantes

Attestation

Littérature scientifique

OpenAlex : 3 466 articles depuis 1960, dont 38 % ces cinq dernières années; surtout en Physics and Astronomy, Engineering, Medicine

Références séminales

Paquets R

Code R de l'exemple ggplot2

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 dans le corpus; indexé par 3 ouvrages

Afficher les 23 sources

Citer cette fiche

Adresse stablehttps://dataviz.adrientaudiere.com/terme/density-plot.html

RéférenceTaudière Adrien. 2026. courbe de densité. Dans Visualization Vocabulary, version 1.0.0. IdEst. https://dataviz.adrientaudiere.com/terme/density-plot.html

BibTeX
@incollection{taudiere2026-density-plot,
  author    = {Taudière, Adrien},
  title     = {courbe de densité},
  booktitle = {Visualization Vocabulary},
  year      = {2026},
  version   = {1.0.0},
  publisher = {IdEst},
  url       = {https://dataviz.adrientaudiere.com/terme/density-plot.html},
  note      = {CC0 1.0}
}

Fiche créée le 13/10/2026. Texte modifié le 22/10/2026. Images modifiées le 12/11/2026. Chiffres calculés le 22/10/2026.