Jump to content

Hammock plot

From Wikipedia, the free encyclopedia
Example of a hammock plot. The variables "species" and "island" are categorical variables. "Bill length mm", "bill depth mm", and "flipper length mm" are numerical variables. They are represented by a boxplot, a violin plot, and a rugplot, respectively. The value "Torgersen" from the "island" variable is highlighted. This image was generated using the Palmer penguins dataset[1]

A hammock plot is a multivariate visualization that displays numerical and categorical variables along parallel axes.[2] Each variable occupies a vertical axis whose sections represent the distribution of values. Adjacent variables are connected by bands whose thicknesses are proportional to the number of observations belonging to each pair of values, revealing the joint distribution. Hammock plots consistently follow strict proportions across variables and connectors, so that joint distributions are easy to see. Values can be highlighted to trace their conditional distribution across all variables.[3]

Hammock plots are particularly useful for visualizing patterns across multiple variables.

References

[edit]
  1. ^ Horst, Allison M.; Hill, Alison Presmanes; Gorman, Kristen B. (2020-07-25), allisonhorst/palmerpenguins: v0.1.0, doi:10.5281/zenodo.3960217, retrieved 2025-12-05
  2. ^ Schonlau, Matthias (2003). "Visualizing Categorical Data Arising in the Health Sciences Using Hammock Plots" (PDF). Proceedings of the Section on Statistical Graphics, American Statistical Association.
  3. ^ Schonlau, Matthias (October 2024). "Hammock Plots: Visualizing Categorical and Numerical Variables". Journal of Computational and Graphical Statistics. 33 (4): 1475–1487. doi:10.1080/10618600.2024.2322561. ISSN 1061-8600.