Distribution

Split violin plot

Compares two subgroup distributions using opposite halves of a violin within each category.

  • Plot
  • Distribution
  • Comparison

What it answers

How do two subgroups differ within each category?

Shape
Opposing half-violins
What it shows
Within-category shifts and shape differences.

Example

The question

Did handling times change after the new process, in each team?

Minutes to handle a case, before and after the change (split violins, illustrative)

Minutes to handle a case, before and after the change (split violins, illustrative)Left halves show before, right halves after. Handling times fell in all three teams, most in Team C (from about 26 to about 18 minutes).BeforeAfterMinutes per case015304560Team ATeam BTeam C
Minutes to handle a case, before and after the change (split violins, illustrative)Left halves show before, right halves after. Handling times fell in all three teams, most in Team C (from about 26 to about 18 minutes).BeforeAfterMinutes per case015304560Team ATeam BTeam C
Left halves show before, right halves after. Handling times fell in all three teams, most in Team C (from about 26 to about 18 minutes).

Illustrative data. It belongs to no company.

When to use it

Use it when

Two subgroup distributions per category.

Avoid it when

More than two subgroups or unclear left/right mapping.

How to read it

Compare left and right halves at the same value.

Note

Normally exactly two subgroups per category.

The data you need

Layout
Long table
Fields
Category: text; Subgroup: text; Value: number
One row is
One raw observation for a category and subgroup. What is the grain?
Rules
Use two subgroups per category for a conventional split violin. Keep raw numeric observations.
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.CategorySubgroupValueAABBC
A long table: one row per observation, few columns. New data adds rows.

Worked example

CategoryA has Before values 10,12 and After 18,23. Put halves side by side; the observed After values are higher. More data is needed for credible density estimation.

CategorySubgroupValue
ABefore10
ABefore12
AAfter18
AAfter23