Skip to content
R for the Rest of Us Logo

Resources

This carefully curated collection of resources will help you find packages and learning resources to help you on your R journey.

Screenshot of Take A Sad Plot & Make It Better: A Case Study with R and ggplot2

Take A Sad Plot & Make It Better: A Case Study with R and ggplot2

A case study with R and ggplot2 on improving a sad plot

Go to Resource
Screenshot of Telling Stories with Data

Telling Stories with Data

Telling Stories with Data by Rohan Alexander is a comprehensive guide on communicating insights effectively using data in R and Python. Published by Chapman and Hall/CRC, the book is endorsed by experts for its unique approach in emphasizing statistical communication, programming, and modeling. It covers the entire data science workflow, including data acquisition, analysis, and reproducibility, making it an excellent resource for statistics courses or self-learning. It focuses on developing the computational and philosophical skills necessary for sense-making and telling stories with data, making it a valuable tool for data scientists and analysts.

Go to Resource

Ten great R functions #3

Erik Gahner Larsen's blog post shares another ten essential R functions to aid users with different tasks in 2024, some new and some old. The post includes functions like reprex::reprex() for creating reproducible examples, data.table::let() for easier data manipulation, renv::init() for reproducible environments, and directlabels::geom_dl() for enhanced data visualizations. These functions cater to a variety of needs from efficient data frame manipulation to ensuring reproducibility, and from enhancing visual outputs to managing project environments effectively.

Go to Resource

The best R packages for data visualization

The best R packages for data visualization provide a comprehensive suite of tools for creating all types of charts and graphs. Core to R's visualization capabilities is the package ggplot2, which offers a versatile grammar of graphics. Extensions of ggplot2 and other packages expand these functionalities, allowing for interactive charts, improved aesthetics, specialized geospatial analysis, and managing complex data structures like networks. Packages like plotly, rmarkdown, patchwork, and hrbrthemes enhance the user experience and presentation. Additionally, there are packages dedicated to managing colors, creating tables, and supporting specific chart types like word clouds and streamgraphs.

Go to Resource
Screenshot of The complete guide to scales

The complete guide to scales

A complete guide to scales in ggplot2.

Go to Resource

The ggplot flipbook

The ggplot flipbook is a book made with xaringan that introduces the ggplot2 package in R. It explains the concept of the layered grammar of graphics and demonstrates a 'slow ggplotting' method for building plots incrementally. The book provides examples and code snippets to help users learn how to use ggplot2 effectively for data visualization.

Go to Resource

The ggplot2 package popularity index

This article by Erik Gahner Larsen discusses the popularity of ggplot2 package extensions. He explores the ecosystem of packages that enhance ggplot2 capabilities, from new geometric objects to custom color themes. Despite the existence of official galleries and other resources, Larsen presents his own criteria for ranking the popularity of ggplot2 packages, emphasizing CRAN downloads and adherence to the grammar of graphics principles. He critiques existing rankings for including outdated or non-CRAN packages and introduces his strict definition of what constitutes a ggplot2 extension, focusing on low-level functions that directly improve ggplot2 objects.

Go to Resource
Screenshot of The Glamour of Graphics

The Glamour of Graphics

In this talk, William Chase presents design principles that can be applied to transform any chart from drab to fab. He focuses on the 'Glamour of Graphics' and how it can be implemented in ggplot to improve the visual appeal and persuasive power of charts.

Go to Resource

The guide to gradients in R and ggplot2

This content is a comprehensive guide to using gradients in R and ggplot2, created by James Goldie. It covers everything from basic gradient applications to creating advanced mesh gradients within ggplot2 for enhanced visualization. The guide, published on February 24, 2025, includes examples and tutorials for applying gradient effects to various plot elements in R's ggplot2 package, utilizing functions from the 'grid' package, and considerations for themes and aesthetic choices. It also touches on the support for gradients in R version 4.1 and ggplot2 version 3.5.0, as well as how to work with system fonts and R graphics devices that support gradients.

Go to Resource
Screenshot of The MockUp - Creating and using custom ggplot2 themes

The MockUp - Creating and using custom ggplot2 themes

Creating and using custom ggplot2 themes

Go to Resource
Screenshot of The power of three: purrr-poseful iteration in R with map, pmap and imap

The power of three: purrr-poseful iteration in R with map, pmap and imap

This post explores the map family of functions in the purrr package, which provide useful tools for iterating through lists and vectors in R. It focuses on map, pmap, and imap functions and their uses in manipulating multi-dimensional datasets and applying statistical models.

Go to Resource
Screenshot of The R Package Workflow

The R Package Workflow

This text describes the R package workflow for structuring data science projects.

Go to Resource