Skip to content
R for the Rest of Us: A Statistics-Free Introduction is out now! Check it out →
R for the Rest of Us Logo


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

Screenshot of Building Shiny apps - an interactive tutorial

Building Shiny apps - an interactive tutorial

An interactive tutorial on building Shiny apps, which are interactive web pages built using R.

Screenshot of Choropleth Map with Bar Chart in R – the R Graph Gallery

Choropleth Map with Bar Chart in R – the R Graph Gallery

This R Graph Gallery tutorial demonstrates how to create a choropleth map combined with a bar chart in R, using ggplot2 and the patchwork package. The tutorial includes steps and code snippets for data import, manipulation, and visualization. It focuses on visualizing the Human Development Index (HDI) across subregions of Sao Paulo, Brazil. The post introduces binning of continuous variables, customizing plots, theming, and handling geospatial data with the sf package. It also walks through calculating population proportions by HDI groups. Data for the tutorial is hosted on GitHub.

Screenshot of colorblindcheck


Check Color Palettes for Problems with Color Vision Deficiency

Screenshot of colorblindr


An R package to simulate colorblindness on R figures.

Screenshot of Colormeter Guide Extension • ggcolormeter

Colormeter Guide Extension • ggcolormeter

The ggcolormeter package provides a single function guide_colormeter() which is a ggplot2 color/fill legend guide extension in the style of a dashboard meter.

Screenshot of colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes

colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes

colorspace is a toolbox for manipulating and assessing colors and palettes in the R language. It provides utilities for computing with color spaces, such as converting between different color models. The package also includes predefined color palettes and functions for creating customized palettes. It can be used for visualizations and choosing colors in data analysis and graphic design.

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.

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.

Screenshot of covdata


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

Screenshot of 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.

Screenshot of CRAN - Package ggquiver

CRAN - Package ggquiver

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

Screenshot of Create Music with R

Create Music with R

The 'gm' package in R enables users to create music by programmatically defining musical elements such as meter and musical lines. It offers an ease of composing music within R. Using functions like 'Music()', 'Meter()', and 'Line()', users can construct and visualize melodies. The package is easily installable from CRAN or GitHub for the development version. Integration with MuseScore, a free notation software, allows for a seamless music notation experience. The 'gm' package is open-source under the MIT license, with detailed documentation available in its vignette.