Mapping data to graphics
Part 1: Data visualization with {ggplot2}
For the first part of this week’s lesson, you need to work through Posit’s introductory primers for {ggplot2}. You’ll do these in your browser and type code and see results there.
It seems like there are a lot, but they’re short and go fairly quickly (especially as you get the hang of the ggplot() syntax). Complete these:
- Visualize Data
- Exploratory data analysis
- Bar Charts
- Histograms
- Reference video: Histograms in R
- Boxplots and counts
- Reference video: Boxplots (
geom_boxplot())
- Reference video: Boxplots (
- Scatterplots
- Line plots
- Overplotting and big Data
- Customize your plots
Part 2: Reshaping data with {tidyr}
For the last part of this week’s lesson, you’ll work through just one primer to learn how to use the {tidyr} package to reshape data from wide to long and back to wide.
Complete this:
- Tidy Your Data