Tutorial: Working with dates and visualising patterns in data over time
This tutorial was developed for our R-Ladies Cape Town meetup on 21 August 2018 to learn how to work with dates in R using the lubridate package, and then I've included a case study on analysing running activities over time and visualising some patterns using various heatmaps.
To get started, open rladies_tutorial.Rproj file in R.
Lubridate tutorial:
- Open the R Markdown file to get going: lubridate_tutorial.Rmd
- Installation of lubridate is recorded in the notebook.
- There are explanations, snippets of code, and some exercises under "You try"
- The HTML rendered view is also available.
- I used the following links as references:
Case study: Visualising activity
- Open R Markdown file: running_casestudy.Rmd
- Required packages are listed at the top of the file.
- The data is my own, downloaded from Garmin Connect.
- Example images of the heatmaps generated are in /results
- calendarHeat.R is a function from Paul Bleicher (GNU GPL2 license)