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. A graphical abstract is shown below.
翻译:针对包含分类变量在内的多变量数据,现有可视化方法较为有限。吊床图(Schonlau 2003)通过平行坐标系统同时展现分类变量与数值变量。本文介绍了Stata平台的吊床图实现工具hammock。我们通过大量示例探讨了高亮显示、缺失值处理、坐标轴统一标度设置以及跨变量观测追踪等功能。此外,本文论证了平行单变量图可作为吊床图的边界特例。同时,我们公开了2020年环法自行车赛的新数据集。图示摘要如下所示。