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 Coloured text in {ggplot2}: {ggtext} vs {marquee}

Coloured text in {ggplot2}: {ggtext} vs {marquee}

This content compares two R packages, {ggtext} and {marquee}, which allow users to add colored text to {ggplot2} visualizations as an alternative to a traditional legend. It discusses the suitability of this approach for categorical data and provides examples using lemur data from Duke Lemar Center. The tutorial includes data wrangling with {dplyr} and creating a scatter plot in {ggplot2}, as well as describing the use of HTML and CSS for text formatting in the {ggtext} package.

Go to Resource

Compute and Visualize Wildfire Exposure • fireexposuR

fireexposuR is an R package designed for computing and visualizing wildfire exposure with a focus on aiding wildfire management. It automates established methodologies, offers customization for various use cases and geographies, and enables output visualization. Users from varied sectors like research, government, and forestry can benefit, but a solid understanding of wildland fuels, spatial data, and R is recommended. The package ensures accessibility and encourages users to familiarize themselves with the underpinning scientific theories for effective use. It doesn't simplify the complexities of theory, data preparation, or parameter decision-making intrinsic to wildfire exposure assessments.

Go to Resource

Computer vision with LLMs in R

The Posit blog post details the application of Computer Vision with Language Model (LLM) techniques using R. Authored by Frank Hull, a Director of Data Science & Analytics, it delves into the role of AI in the energy sector, particularly in risk understanding and uncertainty quantification. The article reflects Hull's extensive experience and introduces how Posit is enhancing data science workflows with AI. Readers are invited to subscribe for updates on Posit's latest AI integrations, features, and releases in the rapidly evolving field of data science.

Go to Resource

Constructing a Baseball Savant Graph

This content describes a workshop on creating a Baseball Savant graph and replicating its unique graphic style using Gerrit Cole's pitch data as an example. It includes a step-by-step guide on analyzing baseball data using R, from reading Retrosheet data, computing mean runs from game states, graphing expected runs, and finding leaders in total runs value. It also demonstrates how to reproduce the Movement Profile graph from Baseball Savant by manipulating and visualizing pitch movement data. The material, available on GitHub, is designed for those interested in sabermetrics and data visualization in sports analytics.

Go to Resource

Convenience Functions for Working With Non-Calendar Years in R • acadyr

acadyr is an R package that simplifies the process of working with financial and academic years, which do not follow standard calendar cycles. It provides utility functions to create and manipulate these non-standard year types in R, such as financial_year and academic_year, which help in determining the year based on any given date. The package integrates smoothly with dplyr and ggplot2, and includes a vignette with examples of typical use cases, such as generating summary bar charts of revenues by financial year. While not available from CRAN, acadyr can be installed directly from GitHub.

Go to Resource
Screenshot of Convert a Word table to Markdown

Convert a Word table to Markdown

The blog post describes a function created by the author to convert Microsoft Word tables into Govspeak Markdown, which is needed for publishing HTML files on GOV.UK. This process is typically tedious and demands attention to specific Govspeak features such as row labels and totals columns. The author introduces an R package named {wordup} that includes the function table_to_govspeak(), which handles input, guesses data types, and applies extra styles to the table conversion. It streamlines moving content from Word to Govspeak, which can be further facilitated by copying tables to the clipboard.

Go to Resource

Convierte gráficos {ggplot2} en visualizaciones interactivas con {ggiraph}

El artículo ofrece una guía paso a paso para transformar gráficos estáticos creados con {ggplot2} en visualizaciones interactivas utilizando el paquete {ggiraph} en R. Explica cómo instalar {ggiraph}, modificar funciones geométricas para la interactividad y usar girafe() para crear gráficos interactivos. Se enfoca en el uso de datos identificadores y tooltips para mejorar la interactividad y proporciona un ejemplo práctico sobre cómo adaptar un gráfico de dispersión. Además, muestra cómo personalizar estilos de tooltips con CSS, haciendo las visualizaciones más informativas y estilizadas.

Go to Resource
Screenshot of covdata

covdata

covdata is a data package for R that collects and bundles datasets related to the COVID-19 pandemic from a variety of sources.

Go to Resource
Screenshot of cowplot

cowplot

The cowplot package provides various features that help with creating publication-quality figures, such as a set of themes, functions to align plots and arrange them into complex compound figures, and functions that make it easy to annotate plots and or mix plots with images.

Go to Resource
Screenshot of CRAN - Package ggquiver

CRAN - Package ggquiver

An extension of 'ggplot2' to provide quiver plots to visualise vector fields.

Go to Resource

Create custom GPS route maps in R

This content is a tutorial by Nicola Rennie, published on November 23, 2025, about creating custom GPS route maps in R. It provides a step-by-step guide on how to use spatial data to produce printable maps, ideal for runners, cyclists, or anyone interested in learning about spatial data handling in R. The tutorial includes loading GPS data from files (such as .gpx), processing it using R packages like 'gpx', 'tidyverse', and 'sf', and then enhancing the maps with background data from OpenStreetMap through the 'osmdata' package.

Go to Resource

Create Interactive Gantt Charts with Work Breakdown Structure • ganttify

Ganttify is a package that allows for the creation of interactive Primavera-style Gantt charts with a Work Breakdown Structure (WBS) hierarchy. Leveraging plotly, the package enables flexible and dynamic visualizations with features such as multi-level WBS organization, flexible coloring, interactive elements, dynamic date formatting, scrollable views, milestone lines, and options for dimming past activities. Users can show/hide WBS, customize labels, and compare planned vs actual dates. It offers an organized configuration API for cleaner code and is available on CRAN and GitHub.

Go to Resource