Curing the fever
A data viz makeover featuring cowbell usage in rock and pop music.
I saw this plot pop up on Bluesky, checked out the source data, and wondered if I could do something different. My immediate thought was - "plot the data in the shape of a cowbell". Actually, that's not true, my immediate thought was - "how up to date is this data?" And I checked it, and immediately submitted two more songs that definitely have cowbell, and were not on the list. Then, I began to think of different ways of plotting the data, and that's when I thought it would be cool to have the plot in the shape of the instrument itself. The problem with that idea was that I had no clue how to achieve that, the mathematics were beyond me.
Let's back up. What is a cowbell? First, for those that don't know, I'm not referring to literal cow bells, which I imagine are genuinely small bells hung somewhere on a cow, or, more likely, a herd of cows. (Yes, I'm imagining the kids TV series "Heidi". God I'm old). The other childhood memory of cowbells was watching downhill skiing on TV on Sunday evenings, where the spectators would happily clang away as suicidal skiists1 would go flying down the hill at ridiculous speeds.
But I'm a (failed former) drummer, and cowbells only mean one thing to me. A brick sized lump of metal, narrow at one end, opening up to a roundish, rectangular-ish funnel at the other, which you hit with your stick, instead of hitting the hi-hats or ride cymbals. Why? Because it sounds ace, it cuts through EVERYTHING, and it immediately adds funky sass to your sick beats. Even if you're playing metal.
Cowbells = awesome, it's an inescapable fact.
For classic examples of the genre, you can't look too far beyond Gun N' Roses' Appetite For Destruction. One song with cowbell (Welcome to the Jungle) is obviously cool. Two is outstanding. But Steven Adler didn't stop at two - no, he happily clonked away on 5 tracks, on their debut album. Outrageous. I can't think of another drummer off-hand where the cowbell seemed such an integral part of the kit. It's only now I'm realising he did so much on one album, and I suspect if the source data had the album titles available, then I'd have discovered he has more cowbell hits per capita than any other drummer in existence.
Other cool songs with cowbell or cowbell adjacent equipment include Queens of The Stone Age's Little Sister2, The Bangles all-time classic cover of Hazy Shade of Winter, and for a much newer example, Kill or Be Killed3 from The Warning's excellent new album, Everything's Falling.
As for the plotting, well, I'm frankly disgusted with myself, but I turned to AI (Claude) for help with the maths. First of all, I described what I wanted, or at least I tried to, but it had already gone off, read in the data and made a descending bar chart (with axis labels and labelled bars, a data-viz no-no, but never mind).
So I told it to "hang on, let me finish, I want it in the shape of a cowbell", and it produced what looked more like a christmas tree than a cowbell. Eventually, I found a stock image, got it to read that in, work out the co-ordinates, plot the outline, and then begin plotting the points.
I wanted to say I felt like Tony Stark telling JARVIS what colour to paint my Iron Man suit while rocketing around my basement. (The first time I watched that movie, I wished I had JARVIS so I could Tony Stark the sh*t out of ggplot2). But in truth, I just wanted to set fire to my laptop.
Eventually, I had a plot I was happy with, and then created a version on a dark background, because if there's one thing I've learned, people love brightly coloured dots on a dark background:

So that's it, that kept me entertained for an evening.
The R code it generated was way beyond me, fully base R, really intensive maths stuff. Not for the faint-hearted, and certainly not something I would have come up with myself. I then pointed in the direction of the most excellent Georgios Karamanis, specifically his recent Tidy Tuesday "frog plot" to see what could be learned or adopted. Claude did say that Georgios had a better, more easily maintainable approach, but I'm not sure how much it changed it's own approach as a result.
I'm going to try and get some sort of wrapper function set up so that in theory, any old image can be read in and plotted (I was able to plot the cowbell data on the frog shape, for instance, so it appears to work) but it's not exactly important stuff.
But while I'm happy to admit the maths and associated code were beyond me, I still had an important part to play. The first attempt by AI was a bar chart, and the next was a tree. It's original title and subtitle were bland, to say the least. It was my idea to plot it in the shape of a cowbell in the first place. And it was my idea to add the elipsis shape to give the open end of the cowbell a "mouth" to make the whole thing more lifelike. Its first attempt at colouring used what appeared to be a viridis scale, but with a really narrow range of barely discernible colours. It was my idea to colour code the title, and split the legend so that it only showed the numbers for 4 songs or less (it was taking up too much space otherwise). In all, this first attempt at working with AI for data visualisation showed me that it has it's place, especially for the boring / heavy computation stuff, but humans are still required. For now.
EDIT: There were some tracks on the list that surprised me. Master of Puppets? I don't believe that for a minute. The Cult - Love Removal Machine? Nope, never heard a cowbell on that one. Red Hot Chili Peppers- Breaking the Girl? They hit a lot of objects during the making of that track, but a cowbell wasn't one of them. Anyway, it does call the overall numbers into question, but I'm fairly assured that the big-hitters4 mentioned in the plot title are at least correct.
1 I know that's not a word. I don't care.
2 Technically, this one is a jam block
3 Fans of The Warning will tell you this is not a cowbell, it's a Pau-bell (The drummer is named Paulina, which is often shortened to "Pau")
4 Unbelievable pun, I'm sure you'll agree