This book would never have been possible if I hadn’t stumbled upon TidyTuesday several years ago, and so I’m exceptionally grateful for the team behind it. In particular, Jon Harmon who has spent much of his own free time building a wonderful community of data science folks, and maintaining the TidyTuesday datasets alongside other open source projects. Special thanks also to Tom Mock, Tracy Teal, Lydia Gibson, and Tan Ho for their work in supporting TidyTuesday and the wider Data Science Learning Community. Many thanks to those who have curated and submitted datasets for TidyTuesday over the years.
More broadly, the R and Data Visualization communities have been a source of inspiration, support, and odds bits of knowledge both before and during the writing of this book. I’m sure they will continue to be afterwards.
Thanks also to Emanuele Giorgi and Claudio Fronterrè for their help in reviewing early drafts, and for their encouragement throughout the process of writing this book. Thank you to CRC Press for agreeing to publish this book, and special thanks to Lara Spieker for her guidance and support.
Basically, in short, I’m very grateful for the big, nerdy data community around me.
Anscombe, F. J. 1973.
“Graphs in Statistical Analysis.” The American Statistician 27 (1): 17–21.
https://doi.org/10.1080/00031305.1973.10478966.
Aphalo, Pedro J. 2024.
Learn R: As a Language. Second Edition. CRC Press.
https://www.learnr-book.info/.
Auguie, Baptiste. 2019.
egg: Extensions for ’ggplot2’: Custom Geom, Custom Themes, Plot Alignment, Labelled Panels, Symmetric Scales, and Fixed Panel Size.
https://CRAN.R-project.org/package=egg.
Barthelme, Simon. 2024.
imager: Image Processing Library Based on ’CImg’.
https://CRAN.R-project.org/package=imager.
Bridson, Robert. 2007.
“Fast Poisson Disk Sampling in Arbitrary Dimensions.” In
ACM SIGGRAPH 2007 Sketches. SIGGRAPH ’07. New York, NY, USA: Association for Computing Machinery.
https://doi.org/10.1145/1278780.1278807.
Brown, Mark J.F., and Paxton, Robert J. 2009.
“The Conservation of Bees: A Global Perspective.” Apidologie 40 (3): 410–16.
https://doi.org/10.1051/apido/2009019.
Cameron, Allan, and Teun van den Brand. 2024.
geomtextpath: Curved Text in ’ggplot2’.
https://CRAN.R-project.org/package=geomtextpath.
CARTO. 2016.
’CARTOColors’ Palettes.
https://carto.com/carto-colors/.
Cheung, Foo. 2021.
dumbbell: Displaying Changes Between Two Points Using Dumbbell Plots.
https://CRAN.R-project.org/package=dumbbell.
Comin, D. A., and B. Hobijn. 2009.
“The CHAT Dataset.” Working Paper 15319. Working Paper Series. National Bureau of Economic Research.
https://doi.org/10.3386/w15319.
Csárdi, Gábor, and Jim Hester. 2024.
pak: Another Approach to Package Installation.
https://CRAN.R-project.org/package=pak.
Csárdi, Gábor, Jim Hester, Hadley Wickham, Winston Chang, Martin Morgan, and Dan Tenenbaum. 2024.
remotes: R Package Installation from Remote Repositories, Including ’GitHub’.
https://CRAN.R-project.org/package=remotes.
Domin, Iaroslav. 2024.
ggview: ’ggplot2’ Picture Previewer.
https://CRAN.R-project.org/package=ggview.
Engler, Jan Broder. 2024.
“Tidyplots Empowers Life Scientists with Easy Code-Based Data Visualization.” bioRxiv.
https://doi.org/10.1101/2024.11.08.621836.
FC, Mike, Trevor L. Davis, and ggplot2 authors. 2024.
ggpattern: ’ggplot2’ Pattern Geoms.
https://CRAN.R-project.org/package=ggpattern.
Font Awesome. 2024.
“Font Awesome 6.” https://fontawesome.com/.
Franconeri, Steven L., Lace M. Padilla, Priti Shah, Jeffrey M. Zacks, and Jessica Hullman. 2021.
“The Science of Visual Data Communication: What Works.” Psychological Science in the Public Interest 22 (3): 110–61.
https://doi.org/10.1177/15291006211051956.
Garnier, Simon, Ross, Noam, Rudis, Robert, Camargo, et al. 2024.
viridis(Lite) - Colorblind-Friendly Color Maps for R.
https://doi.org/10.5281/zenodo.4679423.
Gohel, David, and Panagiotis Skintzos. 2024.
ggiraph: Make ’ggplot2’ Graphics Interactive.
https://CRAN.R-project.org/package=ggiraph.
Government Analysis Function. 2021. “Data Visualisation: Colours.”
Hafen, Ryan. 2023.
geofacet: ’ggplot2’ Faceting Utilities for Geographical Data.
https://CRAN.R-project.org/package=geofacet.
Harmon, Jon. 2024.
Web APIs with R.
CRC Press.
https://wapir.io/.
Hester, Jim, Florent Angly, Russ Hyde, Michael Chirico, Kun Ren, Alexander Rosenstock, and Indrajeet Patil. 2024.
lintr: A ’Linter’ for R Code.
https://CRAN.R-project.org/package=lintr.
Hester, Jim, and Jennifer Bryan. 2024.
glue: Interpreted String Literals.
https://glue.tidyverse.org/.
Hughes, Ellis. 2022a.
camcorder: Record Your Plot History.
https://CRAN.R-project.org/package=camcorder.
———. 2022b.
tidytuesdayR: Access the Weekly ’TidyTuesday’ Project Dataset.
https://CRAN.R-project.org/package=tidytuesdayR.
Hvitfeldt, Emil. 2021.
paletteer: Comprehensive Collection of Color Palettes.
https://github.com/EmilHvitfeldt/paletteer.
Iannone, Richard. 2024.
fontawesome: Easily Work with ’Font Awesome’ Icons.
https://CRAN.R-project.org/package=fontawesome.
Internet Assigned Numbers Authority. 2023.
“The tz Database: Time Zone and Daylight Saving Time Data.” Internet Assigned Numbers Authority.
https://data.iana.org/time-zones/tz-link.html.
Kays, R., R. R. Dunn, A. W. Parsons, B. Mcdonald, T. Perkins, S. A. Powers, L. Shell, et al. 2020.
“The Small Home Ranges and Large Local Ecological Impacts of Pet Cats.” Animal Conservation 23 (5): 516–23. https://doi.org/
https://doi.org/10.1111/acv.12563.
Keyes, David. 2024.
R for the Rest of Us: A Statistics-Free Introduction. No Starch Press.
https://book.rfortherestofus.com/.
Lucchesi, Lydia, and Petra Kuhnert. 2020.
Vizumap: Visualizing Uncertainty in Spatial Data.
https://github.com/lydialucchesi/Vizumap.
Mapping Museums. 2021.
“Mapping Museums Data.” www.mappingmuseums.org.
Massicotte, Philippe, and Andy South. 2023.
rnaturalearth: World Map Data from Natural Earth.
https://docs.ropensci.org/rnaturalearth/.
Matejka, Justin, and George Fitzmaurice. 2017.
“Same Stats, Different Graphs: Generating Datasets with Varied Appearance and Identical Statistics Through Simulated Annealing.” In, 1290–94.
https://doi.org/10.1145/3025453.3025912.
McDonald, J. L., and H. Cole. 2020.
“Data from: The Small Home Ranges and Large Local Ecological Impacts of Pet Cats [United Kingdom].” Movebank data repository.
https://doi.org/doi:10.5441/001/1.pf315732.
McWhite, Claire D., and Claus O. Wilke. 2024.
colorblindr: Simulate colorblindness in R figures.
https://github.com/clauswilke/colorblindr.
Mid-Atlantic Apiculture Research and Extension Consortium. 2024. “Seasonal Cycles of Activities in Colonies.”
mikefc. 2024.
poissoned: Tileable Poisson Disc Sampling.
https://github.com/coolbutuseless/poissoned.
Mills, Blake Robert. 2022.
MetBrewer: Color Palettes Inspired by Works at the Metropolitan Museum of Art.
https://CRAN.R-project.org/package=MetBrewer.
MIT Election Data and Science Lab. 2017.
“U.S. House 1976–2022.” Harvard Dataverse.
https://doi.org/10.7910/DVN/IG0UN2.
Müller, Kirill, and Lorenz Walthert. 2023.
styler: Non-Invasive Pretty Printing of R Code.
https://CRAN.R-project.org/package=styler.
Müller, Kirill, and Hadley Wickham. 2023.
tibble: Simple Data Frames.
https://CRAN.R-project.org/package=tibble.
Muth, Lisa. 2018. “An Alternative to Pink & Blue: Colors for Gender Data.”
Natural Resources Canada. 2021.
“Canadian Wind Turbine Database.” Natural Resources Canada (Government of Canada).
https://open.canada.ca/data/en/dataset/79fdad93-9025-49ad-ba16-c26d718cc070.
Nowosad, Jakub. 2018.
’CARTOColors’ Palettes.
https://jakubnowosad.com/rcartocolor/.
Ooms, Jeroen. 2024.
magick: Advanced Graphics and Image-Processing in R.
https://CRAN.R-project.org/package=magick.
Our World in Data. 2019.
“Medical Doctors Per 1,000 People.” https://ourworldindata.org/grapher/physicians-per-1000-people.
Pebesma, Edzer. 2018.
“Simple Features for R: Standardized Support for Spatial Vector Data.” The R Journal 10 (1): 439–46.
https://doi.org/10.32614/RJ-2018-009.
Pedersen, Thomas Lin. 2022.
ggforce: Accelerating ’ggplot2’.
https://CRAN.R-project.org/package=ggforce.
———. 2024.
patchwork: The Composer of Plots.
https://CRAN.R-project.org/package=patchwork.
Pedersen, Thomas Lin, and Martin Mitáš. 2024.
marquee: Markdown Parser and Renderer for R Graphics.
https://CRAN.R-project.org/package=marquee.
Pedersen, Thomas Lin, Jeroen Ooms, and Devon Govett. 2024.
systemfonts: System Native Font Finding.
https://CRAN.R-project.org/package=systemfonts.
Pedersen, Thomas Lin, and Maxim Shemanarev. 2023.
ragg: Graphic Devices Based on AGG.
https://CRAN.R-project.org/package=ragg.
PLDB contributors. 2022. “PLDB: A Programming Language Database.” PLDB.
Qiu, Yixuan. 2022.
sysfonts: Loading Fonts into R.
https://CRAN.R-project.org/package=sysfonts.
———. 2023.
showtext: Using Fonts More Easily in R Graphs.
https://CRAN.R-project.org/package=showtext.
R Core Team. 2024.
R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing.
https://www.R-project.org/.
R4DS Online Learning Community. 2023.
“Tidy Tuesday: A Weekly Social Data Project.” https://github.com/rfordatascience/tidytuesday.
Rennie, Nicola. 2023a.
“Adding Social Media Icons to Charts with ggplot2.” https://nrennie.rbind.io/blog/adding-social-media-icons-ggplot2/.
———. 2024a.
ggtextcircle: Circular Text in ’ggplot2’.
https://github.com/nrennie/ggtextcircle.
———. 2024b.
nobel: Access data from the Nobel Prize API via R.
https://github.com/nrennie/nobel.
———. 2024c.
“tidytuesday.” GitHub Repository. GitHub.
https://github.com/nrennie/tidytuesday.
Rennie, Nicola, and Andreas Krause. 2024.
“Presenting data the Significance way - Part 1.” Significance 21 (3): 36–39.
https://doi.org/10.1093/jrssig/qmae045.
Rudis, Bob, Ben Bolker, and Jan Schulz. 2017.
ggalt: Extra Coordinate Systems, ’Geoms’, Statistical Transformations, Scales and Fonts for ’Ggplot2’.
https://CRAN.R-project.org/package=ggalt.
Rudis, Bob, and Dave Gandy. 2023.
waffle: Create Waffle Chart Visualizations.
https://CRAN.R-project.org/package=waffle.
Sarkar, Deepayan. 2008.
Lattice: Multivariate Data Visualization with r. New York: Springer.
http://lmdvr.r-forge.r-project.org.
Schauberger, Philipp, and Alexander Walker. 2023.
openxlsx: Read, Write and Edit xlsx Files.
https://CRAN.R-project.org/package=openxlsx.
Scheuch, Christoph. 2025.
owidapi: Access the Our World in Data Chart API.
https://doi.org/10.32614/CRAN.package.owidapi.
Schloerke, Barret, Di Cook, Joseph Larmarange, Francois Briatte, Moritz Marbach, Edwin Thoen, Amos Elberg, and Jason Crowley. 2024.
GGally: Extension to ’ggplot2’.
https://CRAN.R-project.org/package=GGally.
Schloss, Karen B., Connor C. Gramazio, Allison T. Silverman, Madeline L. Parker, and Audrey S. Wang. 2019.
“Mapping Color to Meaning in Colormap Data Visualizations.” IEEE Transactions on Visualization and Computer Graphics 25 (1): 810–19.
https://doi.org/10.1109/TVCG.2018.2865147.
Shalloway, Bryan. 2023.
funspotr: Spot R Functions & Packages.
https://CRAN.R-project.org/package=funspotr.
Sievert, Carson. 2020.
Interactive Web-Based Data Visualization with r, Plotly, and Shiny. Chapman; Hall/CRC.
https://plotly-r.com.
Slowikowski, Kamil. 2024.
ggrepel: Automatically Position Non-Overlapping Text Labels with ’ggplot2’.
https://CRAN.R-project.org/package=ggrepel.
Tierney, Nicholas. 2017.
“visdat: Visualising Whole Data Frames.” JOSS 2 (16): 355.
https://doi.org/10.21105/joss.00355.
Tierney, Nicholas, and Dianne Cook. 2023.
“Expanding Tidy Data Principles to Facilitate Missing Data Exploration, Visualization and Assessment of Imputations.” Journal of Statistical Software 105 (7): 1–31.
https://doi.org/10.18637/jss.v105.i07.
Tol, Paul. 2021.
“Paul Tol’s Notes: Colour schemes and templates.” https://personal.sron.nl/~pault/.
United States Census Bureau. 2021a. “Historical Population Change Data (1910-2020).”
———. 2021b. “State Area Measurements and Internal Point Coordinates.”
United States Department of Agriculture: Economics, Statistics and Market Information System. 2022.
“Honey Bee Colonies.” USDA Economics, Statistics and Market Information System.
https://usda.library.cornell.edu/concern/publications/rn301137d.
Walker, Kyle. 2022.
Crsuggest: Obtain Suggested Coordinate Reference System Information for Spatial Data.
https://CRAN.R-project.org/package=crsuggest.
Wanzer, Dana Linnell, Tarek Azzam, Natalie D. Jones, and Darrel Skousen. 2021.
“The Role of Titles in Enhancing Data Visualization.” Evaluation and Program Planning 84: 101896. https://doi.org/
https://doi.org/10.1016/j.evalprogplan.2020.101896.
Wickham, Hadley. 2016.
ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York.
https://ggplot2.tidyverse.org.
———. 2023a.
forcats: Tools for Working with Categorical Variables (Factors).
https://doi.org/10.32614/CRAN.package.forcats.
———. 2023b.
stringr: Simple, Consistent Wrappers for Common String Operations.
https://CRAN.R-project.org/package=stringr.
Wickham, Hadley, Mara Averick, Jennifer Bryan, Winston Chang, Lucy D’Agostino McGowan, Romain François, Garrett Grolemund, et al. 2019.
“Welcome to the tidyverse.” Journal of Open Source Software 4 (43): 1686.
https://doi.org/10.21105/joss.01686.
Wickham, Hadley, and Jennifer Bryan. 2023.
readxl: Read Excel Files.
https://CRAN.R-project.org/package=readxl.
Wickham, Hadley, Mine Çetinkaya-Rundel, and Garrett Grolemund. 2023.
R for Data Science. Second Edition. O-Reilly.
https://r4ds.hadley.nz.
Wickham, Hadley, Romain François, Lionel Henry, Kirill Müller, and Davis Vaughan. 2023.
dplyr: A Grammar of Data Manipulation.
https://CRAN.R-project.org/package=dplyr.
Wickham, Hadley, and Lionel Henry. 2023.
purrr: Functional Programming Tools.
https://CRAN.R-project.org/package=purrr.
Wickham, Hadley, Jim Hester, and Jennifer Bryan. 2024.
readr: Read Rectangular Text Data.
https://CRAN.R-project.org/package=readr.
Wickham, Hadley, Thomas Lin Pedersen, and Dana Seidel. 2023.
scales: Scale Functions for Visualization.
https://CRAN.R-project.org/package=scales.
Wickham, Hadley, Davis Vaughan, and Maximilian Girlich. 2024.
tidyr: Tidy Messy Data.
https://CRAN.R-project.org/package=tidyr.
Wilke, Claus. 2022.
ggtextures: Drawing Textured Rectangles and Bars with grid and ggplot2.
https://github.com/clauswilke/ggtextures.
Wilke, Claus O. 2024.
cowplot: Streamlined Plot Theme and Plot Annotations for ’ggplot2’.
https://wilkelab.org/cowplot/.
Wilke, Claus O., and Brenton M. Wiernik. 2022.
ggtext: Improved Text Rendering Support for ’ggplot2’.
https://CRAN.R-project.org/package=ggtext.
www.nobelprize.org. 2024.
“Nobel Prize API Version 2.1.” https://api.nobelprize.org/2.1/laureates.
York, Piers. 2023.
owidR: Import Data from Our World in Data.
<https://github.com/piersyork/owidR>.
Yu, Guangchuang. 2023.
ggimage: Use Image in ’ggplot2’.
https://CRAN.R-project.org/package=ggimage.
Yutani, Hiroaki. 2023.
gghighlight: Highlight Lines and Points in ’ggplot2’.
https://CRAN.R-project.org/package=gghighlight.
Zehr, Sarah M., Richard G. Roach, David Haring, Julie Taylor, Freda H. Cameron, and Anne D. Yoder. 2014.
“Life history profiles for 27 strepsirrhine primate taxa generated using captive data from the Duke Lemur Center.” Scientific Data 1 (1).
https://doi.org/10.1038/sdata.2014.19.