Author: ShiriCodes
Live Report: View Online
This project presents a statistical analysis of Spotify’s top-streamed songs in 2023, exploring:
- Danceability, energy, valence, BPM, and musical mode
- Temporal trends and correlations
- Streaming success patterns
The project also includes personal insights and product recommendations derived from the analysis, highlighting trends and patterns in Spotify's top-streamed songs. All analysis was performed in R and organized using RMarkdown, producing an interactive HTML report.
- R packages:
ggplot2,dplyr,e1071,knitr - Statistical methods:
- Descriptive stats (mean, median, std, skewness)
- t-tests (e.g., before vs after 2020, major vs minor mode)
- Bootstrap confidence intervals
- Correlation analysis & multiple testing corrections
- Interactive Table of Contents – Navigate easily
- Responsive Design – Works on desktop & mobile
- Dark Mode Support – Follows system preference
- Expandable Code Blocks – Click SHOW to view underlying R code
| File | Description |
|---|---|
Spotify-2023-Analysis.R |
R script with all statistical calculations & plots |
Spotify-2023-Analysis.Rmd |
Full RMarkdown report with narrative + code |
index.html |
Knitted interactive HTML report |
spotify-2023-clean.RData |
Cleaned dataset used for analysis |
LICENSE |
MIT license |
- View the Live Report: Interactive HTML
- RMarkdown Workflow: Open
Spotify-2023-Analysis.Rmdin RStudio - Reproduce in R: Run
Spotify-2023-Analysis.Rwith the dataset in your working directory
Explore more of my projects: ShiriCodes GitHub