|
| 1 | +tinyplot: Lightweight Extension of the Base R Graphics System |
| 2 | + |
| 3 | +Grant McDermott, Vincent Arel-Bundock, Achim Zeileis |
| 4 | + |
| 5 | +The base R graphics system provides a lot of powerful infrastructure for drawing |
| 6 | +data visualizations. At the core is the `plot()` generic function with its |
| 7 | +default and formula methods. The default method can handle many basic plotting |
| 8 | +elements (points, lines, etc.) and the formula method flexibly handles various |
| 9 | +`y ~ x` setups including scatterplots (numeric `y` vs. numeric `x`), boxplots |
| 10 | +(numeric `y` vs. categorical `x`), and spineplots/spinograms (categorical `y`). |
| 11 | +Moreover, there are many elements that can be added like legends, axes, |
| 12 | +annotation, grids of displays, etc. |
| 13 | + |
| 14 | +However, based on this powerful infrastructure base R provides only rather |
| 15 | +limited convenience features pioneered by newer (`grid`-based) visualization |
| 16 | +packages like `ggplot2` and `lattice`, e.g., grouped plots with automatic |
| 17 | +legends and/or facets, advanced visualization types, and easy customization via |
| 18 | +ready-made themes. |
| 19 | + |
| 20 | +The `tinyplot` package fills this gap by providing a lightweight extension of |
| 21 | +the base R graphics system. It aims to preserve the strengths of the base R |
| 22 | +infrastructure (including the `formula`-based interface) while adding the |
| 23 | +convenience features above without requiring (strong) non-base dependencies. |
| 24 | +The presentation provides an introduction to {tinyplot} using various |
| 25 | +visualization examples, highlighting strengths and weaknesses compared to other |
| 26 | +visualization packages. The package is available from CRAN |
| 27 | +(<https://doi.org/10.32614/CRAN.package.tinyplot>) and has many more galleries |
| 28 | +and tutorials at <https://grantmcdermott.com/tinyplot/>. |
0 commit comments