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 Transform data for easier multi-column tables

Transform data for easier multi-column tables

Andrew Weatherman's tutorial provides a step by step guide on transforming data into a wide format to facilitate the creation of intuitive multi-column tables in R using the gt package. It shows how to apply a "538-style" caption to add visual clarity to average team performance statistics against top 100 opponents in men's college basketball over the past five seasons. The tutorial includes detailed explanation of the data manipulation process and the R code needed to produce a visually appealing and informative table.

Go to Resource
Screenshot of Transform Google Docs into Quarto Books with {quartificate}

Transform Google Docs into Quarto Books with {quartificate}

The 'quartificate' package is designed to convert Google Documents into Quarto books, facilitating the transition from a simple document to a structured and maintainable book format. It streamlines the process by exporting the document into a Docx file, converting it to Markdown via Pandoc, and then sectioning it into HTML chapters based on header levels. This enables users to easily manage and render their content as a Quarto book. The package also provides seamless integration with Googledrive for authentication and document retrieval, and offers a quick start to render and view the book using the 'servr' package.

Go to Resource

Trying out dplyr 1.2.0

Crystal Lewis experiments with the new dplyr 1.2.0 features in her article, demonstrating the improved filtering and recoding functions. The Posit team's latest update to this essential R package simplifies data cleaning processes with functions like filter_out(), recode_values(), replace_values(), and replace_when(). With practical examples, Lewis showcases the enhancements and provides a smooth introduction to these changes, making data wrangling more intuitive in R.

Go to Resource

TSA Screening Volume and Epiweeks

This content showcases a visualization of TSA screening volumes compared to Subway ridership, particularly amidst the pandemic's impact. It involves data aggregation challenges, like determining weekly counts from daily data, which can be skewed at year's end. The author addresses these issues using R code and TSA data available since January 2019, presenting a more detailed view of travel patterns over time and emphasizing the importance of careful handling of time-series data when aggregating by weeks, using ISO-8601 date format for this purpose.

Go to Resource
Screenshot of tvthemes

tvthemes

The tvthemes package is a collection of various ggplot2 themes and color/fill palettes based on popular TV shows.

Go to Resource

Understanding the Rise in Domestic Terrorism: Context Matters

Steven Ponce's analytical dashboard examines the increase in US domestic terrorism incidents from 1994-2024, adjusting for population growth. Utilizing raw attack counts and US Census Bureau data, the dashboard presents a four-panel visualization showcasing the adjusted per capita rates and trends by ideology. While the raw attack counts increased by 53%, after adjustment, a 26% rise in per capita rates is observed, highlighting the significant but less dramatic increase. Right-wing attacks have been dominant throughout, with an emphasis on the more modest rise when considering population growth. Released on November 19, 2025, this analysis emphasizes context in understanding domestic terrorism trends.

Go to Resource
Screenshot of UNHCR Dataviz Platform - Aim of better data storytelling

UNHCR Dataviz Platform - Aim of better data storytelling

The UNHCR Data Visualization Platform provides insights, guidelines, and tools designed to improve data storytelling. With a vast chart gallery, users can select charts to effectively showcase data and highlight specific attributes and relationships. The UNHCR Data Visualization Guidelines offer clear, brand-compliant advice for professional graphics. The platform supplies various tools, templates, and scripts compatible with Excel, Power BI, Adobe Illustrator, R, Python, D3, and GIS, aiding in the creation of high-quality visualizations. Additionally, a collection of storymaps, dashboards, and infographics serves as inspiration for crafting compelling data narratives.

Go to Resource

unheadr

unheadr is an R package that helps wrangle data when it has embedded subheaders or broken values. It provides functions to untangle embedded subheaders and fix values that are broken across multiple rows.

Go to Resource
Screenshot of urbanmapr

urbanmapr

The urbnmapr package provides state and county shapefiles in tibble format that are compatible with mapping using ggplot2. It includes shapefiles for Alaska and Hawaii, transformed to be displayed as insets within the continental United States. The package uses shapefiles from the US Census Bureau and converts them to sf format. It also adds various identifiers for merging data and includes options to add territories to the state and county maps.

Go to Resource
Screenshot of urbnthemes

urbnthemes

Additional theme and utilities for ggplot2 in the Urban Institute style

Go to Resource

Use dumbbell plots instead of paired bar charts in 130 seconds - YouTube

This YouTube video discusses the use of dumbbell plots as an alternative to paired bar charts.

Go to Resource

Use meta shortcode variables with Quarto Includes to insert precise content - Posit

This blog post by Ashley Henry at Posit discusses how to use meta shortcode variables with Quarto Includes to ensure precise content insertion in your documentation. It delves into the benefits of using Quarto, a system for technical writing that enhances the insertion process by allowing for better customization and modularity. The post is targeted at users who are involved in the documentation process and are looking for methods to optimize content consistency while maintaining flexibility. Ashley Henry also shares her expertise from her time in the Navy and at Posit, where she focuses on clear and effective documentation.

Go to Resource