Code
library(tidytuesdayR)
library(tidyverse)
library(ggeasy)
library(gt)
theme_set(theme_bw())
<- tt_load(2025, 34)
tt
<- tt[[1]]
bill
<- tt[[2]] topics
TidyTuesday Week 34
Jen Richmond
August 30, 2025
The Tidy Tuesday data this week comes from a gogole sheet that Chris Dalla Riva compiled in the process of writing his book: Uncharted Territory: What Numbers Tell Us about the Biggest Hit Songs and Ourselves. It is a big dataset (105 variables) of information about every Billboard Hot 100 Number One hit from 1958 to 2025.
It contains variables related to everything from the number of weeks the song spent at number one, the makeup of the song writing team, to the key that the song is in and what instruments were featured.
My TidyTuesday strategy with a big dataset like this is to find a tiny question to answer. I am curious about obscure instruments, so this week have focused on Number One song that feature a cowbell.
It seems that the cowbell is rather out of fashion.
plot <- cow %>%
ggplot(aes(x = date, y = score, colour = song)) +
geom_rect(aes(xmin = as.POSIXct("1967-01-01"),
xmax = as.POSIXct("1992-12-31"),
ymin = -Inf,
ymax = Inf),
fill = "lightblue", alpha = .5, inherit.aes = FALSE) +
geom_point(size = 2) +
facet_wrap(~measure) +
labs(title = "Billboard Hot 100 Number Ones that feature a cowbell",
subtitle = "The Billboard Hot 100 Number Ones database contains more than 1000 songs released \nbetween 1958 and 2025. There are 7 songs in the database that include a cowbell. \nThere haven't been any Number One songs featuring a cowbell since 1991.",
x = "Date", y = "Score") +
scale_x_datetime(limits = c(min(bill$date), max(bill$date))) +
easy_move_legend(to = c("bottom")) +
easy_remove_legend_title() +
theme(text = element_text(family = "Lato"))
ggsave(here::here("tidytuesday", "2025-08-26_billboard", "featured.png"), width = 8, height = 6)