When it comes to learning data viz, steal like an artist


Hey folks,

Happy 2025! I really hope that one of your resolutions for the coming year is to grow in confidence and skill using data analysis tools like R. Regardless, I’m honored that you continue to check out the content I describe here in the newsletter and on my YouTube channel. Thank you.

Looking back on my 2024, I did a lot of thinking about how we learn, where I find inspirations, and how I teach. I have been fascinated by other YouTube channels that break down why songs are great, the techniques of different directors, recreating scenes from movies, and describe how to recreate drawings and paintings. So why not look at why data visuals are great and how we can recreate them with our tools?

This is what I’ve been doing since August. I’ve really loved describing my thought process from a 30,000-foot view and then implementing that view on YouTube. Of course, the goal isn’t to recreate other people’s visuals and end there. It’s a means to an end. The goal really is to learn techniques that we can apply to our own questions, to critique visuals from other scientists, and to develop our own methods.

Sometimes I worry that I spend too much time getting just the right font size, line thickness, symbol size, color, or margin width. But by modifying those attributes so fastidiously we are learning how those attributes work. I’m not sure that I need 100 shades of gray or that I can see the difference between a line thickness of 0.10 and 0.15. But, looking at the nuances of these values has really been educational for me and a fun exploration. I have been forced to try things that I wouldn’t ordinarily try.

As things were winding down last semester, I was listening to a Spotify playlist when a song from a family-favorite band, OK GO, came on. Seriously, if you and you kids haven’t “wasted” a night watching OK GO videos on YouTube, you’re really missing out. Anyway, this was the album art for the song that came up

I thought to myself, “Wait, OK GO knows how to program in R? OK GO is interested in genomics?” Probably not. My point in sharing this humorous episode is that by looking for visuals to share with you all I have started looking for visualizations everywhere - even when it isn’t a data visualization!

I’ll hold of on a 30,000-foot description of how I’d make this and instead opt for a 100,000-foot description (is that a thing?). I suspect that I’d start by creating a stacked bar plot and removing the space between the bars on the x-axis - perhaps we’d use geom_area(). Then I’d then use coord_radial() to circularize the area plot. To get the cool color scheme, I’d have my area plot be made up of 20 or so different categorical variables. I’d use scale_fill_manual() to then map each of those variables to a different color. Totally doable :) Go ahead.

Of course, this would take a lot of fiddling to get the right color scheme and pattern. You might be surprised to learn that there are R programmers who use R to generate art. One package that I found is {aRtsy}.

As much fun as I think it would be to generate my own version of this type of art, I’ll likely pass. Part of what I actually love about the album cover is how organic and chaotic and beautiful the patterns are. That’s pretty much a theme for OK GO’s videos in general. For this album cover, I suspect someone used a turntable and dropped different colored paints. Perhaps they had different viscosities and perhaps the artist etched in channels to create the radial streaks we see. Well, I just googled it and sure enough, that’s pretty much / what they did.

My hope for all of us in 2025 is that we tune our eyes to find more data visualizations in the world. Then, the fun begins with thinking through how we’d create the visual followed by actually making the visual.

Workshops

I'm pleased to be able to offer you one of three recent workshops! With each you'll get access to 18 hours of video content, my code, and other materials. Click the buttons below to learn more

In case you missed it…

Here are some videos that I published this week that relate to previous content from these newsletters. Enjoy!

video previewvideo preview

Finally, if you would like to support the Riffomonas project financially, please consider becoming a patron through Patreon! There are multiple tiers and fun gifts for each. By no means do I expect people to become patrons, but if you need to be asked, there you go :)

I’ll talk to you more next week!

Pat

Riffomonas Professional Development

Read more from Riffomonas Professional Development

Hey folks, This has been a busy week! I’ve been on campus teaching a 3 day, all day, R class. It’s been a while since I’ve done one of these live workshops off campus. If you’re interested in me coming to your campus, you coming to Michigan, or being in a Zoom-based workshop, please let me know! I really love being able to interact with you all in workshops. If your experience has been at all like my own the past month or so, your conversations have all had a tinge of anxiety about the...

Hey folks, I really hope you enjoyed the series of newsletters and videos of me recreating the visualizations presented by W.E.B. DuBois at the 1900 Paris Exposition. I can’t express how much I enjoyed making them. Some of them were pretty tricky and required a lot of work. But I think it was worth it! It definitely forced me to use some new-to-me tools like geom_polygon() and geom_sf(). Please let me know what you thought of the series! I wonder if there’d be any interest in a companion to...

Hey folks, I can’t tell you how much I’ve enjoyed recreating the “data portraits” from the collection of visualizations that WEB DuBois and his colleagues presented at the 1900 Paris Exposition. You can find the entire collection of “data portraits” in a book assembled by Whitney Battle-Baptiste and Britt Rusert (here) or as a collection of plates through the Library of Congress (here). Perhaps this isn’t so obvious to my non-US readers and viewers, but February is Black History month. In...