The hammock plot: Where categorical and numerical data relax together

Effective methods for visualizing data involving multiple variables, including categorical ones, are limited. The hammock plot (Schonlau, 2003, Proceedings of the Section on Statistical Graphics, 1–7) visualizes both categorical and numerical variables using parallel coordinates. In this article, we introduce an implementation for these plots, hammock. We give numerous examples that explore highlighting, missing values, putting axes on the same scale, and tracing an observation across variables. Furthermore, we discuss parallel univariate plots as an edge case of hammock plots. We also present and make publicly available a new dataset on the 2020 Tour de France.

Authors

Institutions

Publication Details

Journal
The Stata Journal Promoting communications on statistics and Stata
Published
2026-11-30
DOI
https://doi.org/10.1177/1536867x261508531
Primary Topic
Data Visualization and Analytics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

The hammock plot: Where categorical and numerical data relax together

Matthias Schonlau, Tiancheng Yang
1 links
The Stata Journal Promoting communications on statistics and Stata
Data Visualization and Analytics
article

The hammock plot: Where categorical and numerical data relax together

Matthias Schonlau, Tiancheng Yang
article en

Abstract

Effective methods for visualizing data involving multiple variables, including categorical ones, are limited. The hammock plot (Schonlau, 2003, Proceedings of the Section on Statistical Graphics, 1–7) visualizes both categorical and numerical variables using parallel coordinates. In this article, we introduce an implementation for these plots, hammock. We give numerous examples that explore highlighting, missing values, putting axes on the same scale, and tracing an observation across variables. Furthermore, we discuss parallel univariate plots as an edge case of hammock plots. We also present and make publicly available a new dataset on the 2020 Tour de France.

The Stata Journal Promoting communications on statistics and StataVol. 26(4)
University of Waterloo (CA)
Data Visualization and Analytics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon