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
- Matthias Schonlau (ORCID: https://orcid.org/0009-0007-3651-9268)
- Tiancheng Yang (ORCID: https://orcid.org/0009-0008-4971-035X)
Institutions
- University of Waterloo (CA)
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