Using lubridate and ggplot2 to work with dates in R (CC234)
The lubridate R package has a number of tools for working with dates and the ggplot2 R package has functions to plot data along a date-based axis. In this episode, Pat uses these tools to plot the cumulative precipitation over the year to find whether this year is wetter or drier than previous years. We’ll do everything within RStudio.
Code
You can browse the state of the repository at the
- beginning of the episode
- end of the episode
- corrected bugs - There are some extra files in here since I needed to correct several bugs after recording other episodes