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 Getting started with theme()

Getting started with theme()

This content is a tutorial on the theme() function in the ggplot2 package for R. It provides a practical guide to customizing the appearance of plots using theme(), starting from basic modifications to more advanced tweaks. The tutorial includes examples of modifying plot themes with pre-built ggplot2 themes and the use of the theme() function. It discusses altering legend positions, grid lines, and more nuanced theme elements for personalizing plots. The content is designed to help readers become comfortable and confident in adjusting plot aesthetics to match their preferred style or organizational standard.

Go to Resource
Screenshot of ggfoundry

ggfoundry

ggfoundry is an R package that extends ggplot2 by adding custom fillable shapes. Users can request new shapes through GitHub issues. The package is available on CRAN, with a development version on GitHub. It includes a vignette and articles on the package website for guidance. Examples showcase the integration of ggfoundry with ggplot2, presenting how to create plots with unique shapes like violins and dendrograms. This package is especially useful for creating distinctive and visually appealing data visualizations in R.

Go to Resource
Screenshot of ggittext

ggittext

Fit Text Inside a Box in ggplot2

Go to Resource
Screenshot of ggmagnify

ggmagnify

ggmagnify, an R package, enhances ggplot visualizations by adding a 'magnifying glass' effect. It allows for the creation of magnified insets to highlight important areas of plots, offering flexible customization options like borders, shadows, and shapes (rectangular, elliptical, convex hull, arbitrary). The package, installable from GitHub or r-universe, provides functions to specify both the target region and the inset location using coordinates. The comprehensive examples cover various use cases, including faceting and maps, illustrating ggmagnify's capability to accentuate data points or regions for increased clarity in ggplot graphics.

Go to Resource
Screenshot of ggplot tricks

ggplot tricks

A collection of tricks and tips for using the ggplot2 R package.

Go to Resource
Screenshot of ggplot2

ggplot2

ggplot2 is a system for declaratively creating graphics, based on The Grammar of Graphics.

Go to Resource
Screenshot of ggplot2 Theme Elements Demonstration | Henry Wang

ggplot2 Theme Elements Demonstration | Henry Wang

This is a demonstration by Henry Wang about customizing theme elements in ggplot2, a powerful package in R for data visualizations. The demonstration provides step-by-step instructions on how to identify and modify theme elements in ggplot2.

Go to Resource
Screenshot of ggplot2: elegant graphics for data analysis

ggplot2: elegant graphics for data analysis

This is the online version of the work-in-progress 3rd edition of 'ggplot2: Elegant Graphics for Data Analysis'. The book focuses on explaining the Grammar of Graphics used in ggplot2 and provides details on the underlying theory. It is written by Hadley Wickham, Danielle Navarro, and Thomas Lin Pedersen.

Go to Resource
Screenshot of ggpomological

ggpomological

A ggplot2 theme based on the USDA Pomological Watercolor Collection

Go to Resource
Screenshot of ggspatial

ggspatial

Spatial data framework for ggplot2

Go to Resource
Screenshot of ggsteam

ggsteam

A package to make streamplots

Go to Resource
Screenshot of ggtech

ggtech

ggtech is a package that provides ggplot2 tech themes, scales, and geoms for creating visually appealing plots in R.

Go to Resource