Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clauswilke/practical_ggplot2
Step-by-step examples of building publication-quality figures in ggplot2
https://github.com/clauswilke/practical_ggplot2
Last synced: about 1 month ago
JSON representation
Step-by-step examples of building publication-quality figures in ggplot2
- Host: GitHub
- URL: https://github.com/clauswilke/practical_ggplot2
- Owner: clauswilke
- Created: 2019-06-03T04:21:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T17:18:25.000Z (over 5 years ago)
- Last Synced: 2024-10-14T17:29:01.388Z (3 months ago)
- Language: HTML
- Size: 15.6 MB
- Stars: 167
- Watchers: 10
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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."](https://serialmentor.com/dataviz) 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:
- [Bundestag pie chart](https://htmlpreview.github.io/?https://github.com/clauswilke/practical_ggplot2/blob/master/bundestag_pie.html)
- [Corruption and human development](https://htmlpreview.github.io/?https://github.com/clauswilke/practical_ggplot2/blob/master/corruption_human_development.html)
- [Health status by age](https://htmlpreview.github.io/?https://github.com/clauswilke/practical_ggplot2/blob/master/health_status.html)
- [Interrupted Goode homolosine](https://htmlpreview.github.io/?https://github.com/clauswilke/practical_ggplot2/blob/master/goode.html)
- [Median Texas income by county](https://htmlpreview.github.io/?https://github.com/clauswilke/practical_ggplot2/blob/master/Texas_income.html)