Effective methods for visualizing data involving multiple variables, including categorical ones, are limited. The hammock plot (Schonlau 2003) visualizes both categorical and numerical variables using parallel coordinates. We introduce the Stata implementation hammock. We give numerous examples that explore highlighting, missing values, putting axes on the same scale, and tracing an observation across variables. Further, 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.
翻译:针对包含分类变量在内的多变量数据可视化方法目前较为有限。吊床图(Schonlau 2003)采用平行坐标技术实现对分类变量与数值变量的同步可视化。本文介绍了Stata环境下的吊床图实现工具hammock。通过大量实例演示,我们探讨了高亮显示、缺失值处理、坐标轴统一标度设置以及跨变量观测追踪等功能。此外,我们将平行单变量图作为吊床图的边界特例进行讨论。本文还公开了一个关于2020年环法自行车赛的新数据集。