Preface
Everything is liable to change, even the title
“The tidyverse is an opinionated collection of R packages designed for data science.” https://www.tidyverse.org/
This book is an opinionated compendium of R packages that extend ggplot2 (part of the tidyverse). It doesn’t try to be complete as the ecosystem is both wide and deep. The aim is to celebrate the great community that is creating fun and useful new ways to visualize data. And since we’re talking about data visualization, show what all is possible.
The book is about ggplot2 extension packages. But it has been important to me that I design the structure and contents concept(s) first, and package(s) second.
Landscape
Look at the figure. The amount of R packages depending1, importing2, or suggesting3 (Wickham et al. 2023) ggplot2 is increasing:
Among these thousands of packages are also hundreds of ggplot2 extensions. And these are the ones that are on CRAN (The Comprehensive R Archive Network). There are also packages on GitHub and similar platforms. Packages that no one have yet added to CRAN. Or those that have once been there, but CRAN has since archived for one reason or another.
“Depends: Listing a package in […] Depends […] ensures that it’s installed when needed. […] A package you list in Depends will be attached when your package is attached.”↩︎
“Imports: packages listed here must be present for your package to work. Any time your package is installed, those packages will also be installed, if not already present. devtools::load_all() also checks that all packages in Imports are installed.”↩︎
“Suggests: your package can use these packages, but doesn’t require them. You might use suggested packages for example datasets, to run tests, build vignettes, or maybe there’s only one function that needs the package.”↩︎