Using lubridate and ggplot2 to work with dates in R (CC234)

July 28, 2022 • PD Schloss • 1 min read

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