References
Programming
General Programming in R
- Grolemund, Garrett. “Hands-On Programming with R” [free online], [buy on amazon]
- Peng, Roger D. “R Programming for Data Science” [online - pay what you want]
Data Analysis in R
- Grolemund, Garrett and Wickham, Hadley. “R for Data Science” [free online], [buy on amazon]
- Peng, Roger D. “Exploratory Data Analysis with R” [online - pay what you want]
- 16 HOWTO’s, by Lingyun Zhang
RStudio “Cheatsheets”
Visualizing Data
Principles of data visualization
- Healy, Kieran. “Data Visualization: A practical introduction” [free online], [buy on amazon]
- Wilke, Claus O. “Fundamentals of Data Visualization” [free online], [buy on amazon]
- Video: How Humans See Data, by John Rauser. This is probably the best overviews I’ve seen on how to exploit the psychology of how our brains interpret images to make effective visualizations.
Choosing the right chart
You will want to choose different chart types depending on the relationship or message you want to convey. Fortunately, we live in the future and awesome people have created wonderful tools to help you find the most appropriate graph for your data. Take a look through some of these resources - these will come in handy when you start working on your final project:
Making plots with ggplot2
- The R Graph Catalog: 124 examples (with code) for making common ggplots.
- The ggplot2 Extensions gallery: 64 registered libraries that extend the functionality of ggplot2.
- Top 50
ggplot2
visualizations - R Cookbook for
ggplot2
- RStudio
ggplot2
Cheatsheet - Tidyverse
ggplot2
reference guide - ggThemeAssist: Package for customizing plot themes and layout
- 16 HOWTO’s, by Lingyun Zhang - super useful for making specific types of charts
Polishing ggplot2 plots
Choosing colors
- Color wheel tool
- ggplot2 book chapter 12
- R graph gallery
- Coolors.co - super nice color palette generator
Animating ggplot2 plots
Other
Helpful Tutorials
Inspiration
- An Incomplete List of Females in Data Visualization, by Stephanie Evergreen
- The Links Between Open Science and Star Wars
When all else fails…
You will inevitably run into problems; things won’t work the way you expect, and you’ll get lots of confusing error messages. When this happens, many turn to the following tried and true problem-solving approaches: