This post is heavily inspired by David Sjoberg and their tutorial found here. Here, I will essentially walk through the tutorial but with my own listening data. Huge thanks to David!
Before we begin, I need to clarify some of the adjustments I made when collecting data. In David’s tutorial, the process to import Spotify data and attach tags through the last.fm API is thoroughly explained and one could easily replicate it if need be. However, I decided that since I will be categorizing by month (instead of seasons) and the monthly tag chart is already available on last.fm (but only with their subscription service, last.fm pro), I have pulled and manually created my own data. Due to this, I have skipped the first half of the tutorial.
As always, we import the necessary packages for data manipulation and visualization. Here, our focus is on the ggbump package, which will allow us to create a smooth bump chart in R.
library(dplyr)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union