Skip to content

Ridgeline Plot

A graphic that places multiple comparable profile curves on vertically offset baselines over a shared horizontal scale so their shapes and positions can be compared.

Core Idea

A ridgeline plot places several comparable profile curves on vertically offset baselines over a shared horizontal scale. Each group gets a row; its curve height represents a supplied or estimated quantity at each horizontal position. Readers can compare the shapes and locations of groups without giving every curve a separate panel.[1][2]

Kernel-density estimation and positive overlap are common choices, not defining requirements. The ggridges documentation supports directly supplied heights and shows separated, touching, and overlapping ridges. A ridgeline depicts the selected data relationships; it does not explain their causes or provide exact density values when no separate density axis is present.[1][2]

How would you explain it like I'm…

Stacked Mountain Chart

A ridgeline plot is a picture that stacks wavy hill shapes one above another, like rows of mountains. Each row shows one group, such as how warm it was in each month. All the rows use the same ruler going left to right, so you can easily see which hills sit further over, which are wider, and which have two bumps.

Rows of Hill Shapes

A ridgeline plot is a kind of chart that shows several curvy shapes stacked in rows, each one starting from its own baseline, like a row of mountain ridges. Every row uses the same scale from left to right, so you can compare them. Each shape shows how the values for one group are spread out — where most of them are, how spread out they are, and whether there's one peak or more. For example, you could show temperatures for each month of the year. The chart shows differences, but it doesn't tell you why those differences happen.

Offset-Profile Distribution Chart

A ridgeline plot shows several comparable distributions or profiles in one figure. All profiles share the same horizontal axis but each sits on its own vertical baseline, stacked like a mountain range. That lets you compare where each group is concentrated, how spread out it is, and whether it has one peak or several. Claus Wilke's examples include monthly temperatures and movie lengths by year. The curves are often density estimates and often overlap, but neither is required; heights can be given directly, and ridges can be spaced apart. A ridgeline plot is a way of showing data, not a finding: it can reveal a difference in shape but not explain its cause. When densities are shown there's usually no density axis, so it's good for comparing shapes, not reading exact values.

 

A ridgeline plot displays several comparable profiles in a single graphic, each drawn on the same horizontal scale but rising from a different vertical baseline. Reading across rows lets one compare location, spread, and modality (single versus multiple peaks) between groups; Claus Wilke's examples use monthly temperature distributions and movie lengths by release year, showing that the encoding stays fixed while the measured objects differ. The defining move is the common-axis, offset-profile arrangement. Overlap and kernel density estimation are common but optional: Wilke's ggridges package accepts directly supplied heights as well as estimated densities, and its scale setting can leave ridges separated, just touching, or overlapping. What matters is that curve height relates interpretably to each group's data and that rows remain comparable. When densities are used, there is no separate density axis, so the display supports comparison of shapes and relative heights rather than reading exact density values. A ridgeline is a representation, not a statistical finding: it can reveal visible differences in shape but cannot by itself explain their cause.

Scope of Application

The layout fits a question about how distributions or other profiles vary across groups. Wilke uses Lincoln, Nebraska, daily mean temperatures grouped by month and movie lengths grouped by release year. Those subjects differ, while the repeated-row, common-axis encoding remains the same. Groups need not be chronological: the ggridges vignette also uses iris species.[1][2]

A single filled curve lacks the repeated-group structure. Several unrelated panels with independent horizontal scales lack meaningful horizontal alignment. A violin mirrors a density around its centerline, while a ridgeline stacks profiles at distinct baselines. An area chart can fill a curve without having this multiple-row grammar. Positive overlap, equal spacing, a caption, and a particular smoothing method are optional.[2]

Clarity

Read the shared horizontal variable, then each group's baseline and curve. A peak at the same x position is comparable across rows because the horizontal scale is common. Curve height must be interpreted according to its actual construction; a smooth ridge is not automatically a probability density or a measure of sample size. Wilke cautions that ridgeline densities lack a separate axis for reading exact density values.[1][2]

In Wilke's November temperature ridge, two visible clusters lie near roughly 35 and 50 degrees Fahrenheit. That is a description of the graphic, not evidence of why the weather took those values. The movie-length figure likewise does not explain production decisions.[1]

Manages Complexity

The common axis and offset rows make many groups scannable in one frame. Wilke's movie example displays nearly one hundred yearly distributions from 1913 to 2005. Compactness can reduce legibility: as rows crowd or curves overlap, peaks, tails, and group boundaries may become harder to assign. The spacing and overlap should preserve the comparisons the reader needs.[1][2]

Abstract Reasoning

Identify the grouping variable, the common horizontal measurement, the rule that generates curve height, and the offset for each group. Check whether a claimed shift or mode survives the smoothing and scaling choices. If exact density readings matter, provide a quantitative density scale or choose another display; if boundaries disappear, reduce overlap or increase space. A visible difference remains descriptive until other evidence supports a causal claim.[1][2]

Knowledge Transfer

The same group → row, x value → common horizontal position, profile value → height mapping works for temperatures by month and movie lengths by year. It can also display supplied-height curves, but a supplied profile must not be mislabeled as an estimated density. Prime Representation is the broader target-to-medium mapping; this named plot is a domain-specific graphical convention, not a substrate-neutral Prime.[1][2]

Example

Monthly temperatures in Lincoln. Wilke's Figure 9.9 assigns a ridge to each month in 2016. Groups → months; horizontal scale → daily mean Fahrenheit temperature; offset baselines → monthly rows; curve height → estimated temperature density; reading → compare distribution shapes and positions, not exact density values or causes.[1]

Movie lengths by release year. Wilke's Figure 9.11 assigns rows to years from 1913 to 2005. Groups → release years; horizontal scale → movie length; offset baselines → year rows; curve height → within-year distribution profile; reading → compare descriptive shapes and locations without claiming why movie lengths changed.[1]

Relationships to Other Abstractions

Local relationship map for Ridgeline PlotParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Ridgeline PlotDOMAINPrime abstraction: Representation — is a kind ofRepresentationPRIME

Current abstraction Ridgeline Plot Domain-specific

Parents (1) — outgoing typed relations

  • Ridgeline Plot is a kind of Representation Prime

    A ridgeline plot is a representation that maps comparable group profiles to curves on vertically offset baselines and a common horizontal scale.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Ridgeline Plot sits in a sparse region of the domain-specific corpus (91st percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

Violin Plot: a mirrored density form rather than a stack of upward profiles. Area Chart: a filled series may lack offset comparable rows. Small multiples: separate panels rather than one aligned ridgeline frame. Exact density readout: ridgelines commonly omit a density axis. A causal explanation: the plotted difference cannot establish its own cause. The historical pulsar image in the frozen seed was not independently verified and is not used as an evidenced case.[1][2]

References

[1] Claus O. Wilke, “Fundamentals of Data Visualization A Primer on Making Informative and Compelling Figures”, O’Reilly Media, 2019, chapter 9, especially §9.2 and Figures 9.9 and 9.11. The original book title uses a colon after “Visualization”; this linked transcription preserves the full title words for reference binding. Author-hosted complete manuscript; the publisher records 2019 as the first-edition year. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j ↩k

[2] Claus O. Wilke, “Introduction to ggridges”, ggridges package vignette, updated August 26, 2025, “Geoms,” “Ridgelines,” and “Density ridgeline plots.” First-party implementation documentation; supplied heights, density estimates and variable overlap are documented as distinct conventions. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i