PieGlyph:一个用于为二维绘图创建轴不变饼图字形(pie-glyphs)的R包
PieGlyph: An R package for creating axis invariant pie-glyphs for 2d plots
AI总结:
本研究推出R包PieGlyph,它基于ggplot2框架、采用嵌套坐标系实现轴不变饼图字形,可叠加于任意二维图,支持交互式效果与ggplot2生态无缝集成,适用于空间、成分等多维数据可视化。
摘要:
多维数据的有效可视化对于生成洞见至关重要。基于字形的可视化将数据维度编码到颜色、形状、大小等多个视觉通道上,为表示复杂数据集提供了一种有效方式。饼图字形(pie-glyphs)就是这样一种方法,它将多个数据属性映射到饼图内的各个扇区上。本文介绍了PieGlyph R包,该包使用户能够在任意二维绘图上叠加轴不变的饼图字形,为多维数据提供紧凑且直观的表示方式。\n与scatterpie或ggforce等现有R包不同,PieGlyph通过采用嵌套坐标系,独立于绘图轴生成饼图字形,确保无论底层坐标系如何变化,饼图字形都能保持圆形。这提升了可解释性,尤其是在可视化空间数据时,用户可以选择最合适的地图投影而不会使字形形状失真。饼图字形也特别适合可视化成分数据,这类数据的属性天然存在总和为1的约束。\nPieGlyph基于图形语法范式、使用ggplot2框架开发,并通过ggiraph包支持生成交互式饼图字形。它被设计为可与ggplot2和ggiraph提供的所有功能及扩展无缝集成,为用户提供了自定义可视化各个方面的完全灵活性。本文概述了PieGlyph的概念框架,将其与现有替代方案进行了比较,并通过示例可视化演示了其应用。
英文摘要:
Effective visualisation of multidimensional data is crucial for generating insights. Glyph-based visualisations, which encode data dimensions onto multiple visual channels such as colour, shape, and size, provide an effective means of representing complex datasets. Pie-chart glyphs (pie-glyphs) are one such approach, where multiple data attributes are mapped to slices within a pie chart. This paper introduces the PieGlyph R package, which enables users to overlay any 2D plot with axis-invariant pie-glyphs, offering a compact and intuitive representation of multidimensional data. Unlike existing R packages such as scatterpie or ggforce, PieGlyph generates pie-glyphs independently of the plot axes by employing a nested coordinate system, ensuring they remain circular regardless of changes to the underlying coordinate system. This enhances interpretability, particularly in when visualising spatial data, as users can select the most appropriate map projection without distorting the glyphs' shape. Pie-glyphs are also particularly well-suited for visualising compositional data, where there is a natural sum-to-one constraint on the data attributes. PieGlyph is developed under the Grammar of Graphics paradigm using the ggplot2 framework and supports the generation of interactive pie-glyphs through the ggiraph package. Designed to integrate seamlessly with all features and extensions offered by ggplot2 and ggiraph, PieGlyph provides users with full flexibility in customising every aspect of the visualisation. This paper outlines the conceptual framework of PieGlyph, compares it with existing alternatives, and demonstrates its applications through example visualisations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。