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 tidyr

tidyr

The `tidyr` package in R is used to create tidy data, where every column is a variable, every row is an observation, and every cell is a single value. It provides functions for pivoting, rectangling, nesting, splitting and combining character columns. The package supersedes `reshape2` and `reshape` and is designed specifically for tidying data. It has an active community and a Contributor Code of Conduct.

Screenshot of tigris

tigris

Download and use Census TIGER/Line shapefiles in R

Screenshot of tilemaps

tilemaps

The tilemaps package implements an algorithm for generating tile maps, which represent regions with single tiles of the same shape and size. This package allows users to generate single or multiple tile maps and provides functions for visualizing and analyzing the maps.

Tips for debugging and cleaning broken code

This guide provides strategies for debugging and cleaning broken R code, specifically in a data visualization context using 'dplyr' and 'ggplot2'. It helps identify common mistakes in function chaining and plot layering, offering tips on how to spot and fix errors such as misspelled words or misplaced punctuation. The article illustrates the debugging process using an example with incorrect R code, followed by the corrected version. The guide emphasizes the importance of code formatting and reindenting for troubleshooting, making the debugging process less daunting.

Screenshot of tmap

tmap

A tutorial to get started with the tmap package in R for creating thematic maps.

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.

Screenshot of tvthemes

tvthemes

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

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.

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.

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.

Screenshot of urbnthemes

urbnthemes

Additional theme and utilities for ggplot2 in the Urban Institute style

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.