Distribution

Ridgeline / joy plot

Arranges distribution curves along an ordered or categorical axis.

  • Plot
  • Distribution
  • Comparison

What it answers

How do distributions change across ordered groups?

Shape
Offset density ridges
What it shows
Shifting modes and changing spread.

Example

The question

How has the spread of delivery times shifted month by month?

Delivery time distribution by month (ridgeline)

Delivery time distribution by month (ridgeline)One ridge per month, January at the top. The typical delivery time falls from about 6.5 days in January to about 4 days in June.024681012Days to deliverJanFebMarAprMayJun
Delivery time distribution by month (ridgeline)One ridge per month, January at the top. The typical delivery time falls from about 6.5 days in January to about 4 days in June.024681012Days to deliverJanFebMarAprMayJun
One ridge per month, January at the top. The typical delivery time falls from about 6.5 days in January to about 4 days in June.

Illustrative data. It belongs to no company.

When to use it

Use it when

Many ordered distribution groups with adequate samples.

Avoid it when

Heavy overlap, inconsistent scales or few observations.

How to read it

Read each ridge on the shared value axis and compare peak positions.

Note

Use consistent bandwidths and scales for comparisons.

The data you need

Layout
Long table
Fields
Group: text; Value: number
One row is
One raw observation belonging to a group. What is the grain?
Rules
Retain individual observations and group labels. State weighting and missing-data rules.
Optional
For box plots only, some tools accept Group,Q1,Median,Q3,WhiskerLow,WhiskerHigh plus separate outliers. Other distributions usually need raw data.
Preparation
Keep raw numeric observations, group them if needed and handle missingness explicitly. Choose bins, bandwidth or summary conventions as appropriate to this specific plot.
Units
The measurement axis retains its original unit. Frequency uses observations; normalised frequency divides by group sample size; density also depends on interval width.
Example of the input layout: Long tableA long table: one row per observation, few columns. New data adds rows.GroupValueAABBC
A long table: one row per observation, few columns. New data adds rows.

Worked example

Example group summaries peak near 10,15,20. Show one density ridge per group; peaks move right. Use adequate raw data to estimate each ridge.

GroupValue
A10
A12
A18
B11
B23