Skip to content
Step-by-step examples of building publication-quality figures in ggplot2
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore minor tweaks Jun 3, 2019
README.md New example: Texas income Jun 11, 2019
Texas_income.Rmd New example: Texas income Jun 11, 2019
Texas_income.html New example: Texas income Jun 11, 2019
bundestag_pie.Rmd new example Jun 3, 2019
bundestag_pie.html new example Jun 3, 2019
corruption_human_development.Rmd new example Jun 3, 2019
corruption_human_development.html new example Jun 3, 2019
goode.Rmd new example Jun 3, 2019
goode.html add Goode example Jun 3, 2019
health_status.Rmd new example Jun 3, 2019
health_status.html
practical_ggplot2.Rproj initial commit Jun 3, 2019

README.md

Practical ggplot2

Claus O. Wilke

The R package ggplot2 provides a powerful and flexible approach to data visualization, and it is suitable both for rapid exploration of different visualization approaches and for producing carefully crafted publication-quality figures. However, getting ggplot2 to make figures that look exactly the way you want them to can sometimes be challenging, and beginners and experts alike can get confused by themes, scales, coords, guides, or facets. This repository houses a set of step-by-step examples demonstrating how to get the most out of ggplot2, including how to choose and customize scales, how to theme plots, and when and how to use extension packages.

The examples shown are based on the book "Fundamentals of Data Visualization." However, there are minor differences between the figures here and the ones in the book. Most importantly, the book uses the Myriad Pro font family, which is not freely available. I have also cleaned up the ggplot2 code where appropriate, and I have made adjustments to font and figure sizes so the figures look appropriate in the default R Markdown html style.

List of examples provided:

You can’t perform that action at this time.