/spotify-dashboard

An interactive dashboard template for an individual's Spotify listening data. Built with R Markdown, Plotly and flexdashboard.

Primary LanguageRGNU General Public License v3.0GPL-3.0

Spotify Dashboard

Create a useful dashboard overview of Spotify data obtained from the Spotify API. This is designed to work with the data exported from the Spotify Rehydrator. It is also designed to work with multiple different data files, in order to create a dashboard for multiple users. Because of this, the .Rmd file takes a filepath to the data as a parameter, and the .R script can be used to iterate through data files in a repository.

The .Rmd file will generate a .html multi-page dashboard describing an individual's Spotify data. It is built using R Markdown, Plotly and flexdashboard.

This dashboard will accept a .tsv where each row contains a listening event in an individuals Spotify listening history. This is easy to change though in the first markdown block of the template .Rmd file.

Graphs and Summaries included

  • Number of listening events in the data
  • Number of hours of music played overall
  • The percentage of songs that were repeated
  • The number of unique tracks listened to
  • Top 10 artists listened to
  • Top song for each month of data
  • A time-series plot of eight of the music features over time
  • Bar chart of the number of hours of music listened to each weekday
  • Bar chart of the number of hours of music listened to each month
  • A plot of all the songs as points, with the x and y axes as principle components, and songs coloured by their k-means cluster

Example

The below are examples of each page of the dashboard.

Page 1 of the dashboard, with a list of top listened to artists and songs, and some summary statistics about the data

Page 2 of the dashboard, called 'Over Time', with graphs of how music features have changed over time, and number of hours of music listened to each day of the week and each month provided

Page 3 of the dashboard, called 'Over Space', with a graph of all the songs plotted as points on 2-d space