Skip to Main Content
George Mason University | University Libraries
See Updates and FAQs for the latest library services updates. Subject Librarians are available for online appointments, and Virtual Reference has extended hours.

Software: Learn R

Resources to learn and use the Open Source Statistical software R (R-Project)

ggplot2 is universally considered the best package for general graphing and is part of the tidyverse (see Data Management).

Note: The function name is ggplot() - without the 2.

 

Go to the website for

Note: There is some graphing in base r--e.g., plot()--that can be quick and easy for exploration, but few people use lattice any more.

Packages

Packages using ggplot2:

  • esquiesse - Point-and-Click interface to create a single graph from cleaned/prepared data and/or to learn ggplot syntax.
    • Tableau-like workflow helps build and refine a single graph using drag and drop. Automatically chooses chart types based on data types.
    • Produces nice, clean code.
    • Allows for specifying variable types on import (e.g., create factors), transforming values (e.g., log), and filtering by value
  • GGally - Good for bivariate graphing with functions like ggpairs()
  • ggpubr - Easily create Publication-Ready Plots

Create Interactive Graphics

GGPlot2

Other ggplot2 Tutorials

Graph Galleries with Example Code