Making a lot of meh plots will help you find your data visualization diamond


I feel like I’m in a bit of a rut with the content I’ve been posting the last few weeks. I critique a figure, go to recreate it and hopefully improve it, and am left thinking, “meh”. I’m unconvinced that my attempt to improve the figure is any better. Don’t worry, this doesn’t make me feel like a failure. That’s just the way it goes. Honestly, this is an important lesson in doing critiques. We have to have the humility to acknowledge that the original authors may have tried a few approaches and picked what they thought was the least bad option.

We desire perfection. Because of that desire we get stuck doing nothing. We never win the Nobel Prize much less an Outstanding Dissertation Award or the admiration of our peers because we stare at a blank page and can’t get going. This has given rise to the idea of Anne Lamott’s “Sh*tty First Drafts”.

There’s a parable told in the book Art & Fear by David Bayles and Ted Orland, which I’ve heard on numerous podcasts, that I think is related to this idea

[A] ceramics teacher announced on opening day that he was dividing the class into two groups. All those on the left side of the studio, he said, would be graded solely on the quantity of work they produced, all those on the right solely on its quality. His procedure was simple: on the final day of class he would bring in his bathroom scales and weigh the work of the “quantity” group: fifty pound of pots rated an “A”, forty pounds a “B”, and so on. Those being graded on “quality”, however, needed to produce only one pot — albeit a perfect one — to get an “A”. Well, came grading time and a curious fact emerged: the works of highest quality were all produced by the group being graded for quantity. It seems that while the “quantity” group was busily churning out piles of work – and learning from their mistakes — the “quality” group had sat theorizing about perfection, and in the end had little more to show for their efforts than grandiose theories and a pile of dead clay.

I lifted the text from Austin Kleon’s blog who points out that this parable has often been repeated with subtle variations. This is one of those anecdotes that has stuck with me because it affirms a prior belief. I haven’t looked hard enough for a scientific study because I’ve easily noticed it in my work. The same is true for Anne Lamott’s “Sh*tty First Drafts”. You need to turn a bunch of bad pots, write a lot of meandering text, and generate piles of ugly plots to find a good one.

A few weeks ago, I presented figure with two panels and each panel had two y-axes. Data viz dogma states, “Thou shalt not have two y-axes; one is sufficient.” I also had a sentence from the paper summarizing what the authors wanted me to see in their figure. Pretty quickly I came up with 5 other ideas - including a plot with 3(!) y-axes - and proceeded to generate those in R during the livestream. A viewer suggested another approach that I didn’t get a chance to try out.

​My “radical” idea was to go from two facets to three with each having the same x-axis and one y-axis. The most important facet I put in the middle to make it easier to vertically scan to the upper and lower facets to see if they were correlated. This was pretty meh, but it was “the right way”. I felt it was hard to interpret because although one variable was well correlated the other well anti-correlated with disease counts, the data were still messy. To help tie the facets together and highlight the observation that disease counts were higher in cold months, I added blue stripes to the background indicating the cold months. Ehhh… Ultimately, I think what we needed was the temperature data, another facet and … two y-axes.

I have four takeaways from this experience and others like it:

  1. It is important to try a bunch of things. Share what you generate with friends and see if they have suggestions for other ideas or things to tweak. At first, don’t spend a lot of time on colors, formatting, polish, etc. Generate figures.
  2. Sometimes the “rules” are wrong. Don’t get me wrong, the rules are rules for a reason. Violating the rules should be rare. You should have a good reason for breaking those rules. So no, a 50 wedge pie chart is not acceptable.
  3. Develop more empathy for the scientists making the plots. Unless we ask, we don’t know why they made the plot they made. It’s likely they’re on a similar journey we are in making better visuals of our science.
  4. None of this effort is wasted. Figuring out how to make the background stripes or triple y-axes was a lot of fun and rewarding. I’ll file those experiences away and will likely pull them back out again for other projects. Actually, just this week in my livestream trying to improve upon an upset plot, I used the striping effect (horizontal this time) to make the table/connected scatter plot. This would have been harder if I hadn’t practiced this on a plot that turned out to be meh.

Ok, now it’s time to put these takeaways to practice. I’ve been looking for Sankey plots where the data are available to share with you all. I finally found one in a paper published in the paper, “Prophylactic treatment with broadly neutralizing antibody VRC01 selects for escape mutants after infection in Antibody-Mediated Prevention trials” from the journal Nature Microbiology.

Can you think of how you would make this in R? What do you think of the plot? What are other ways you’d try to visualize the data? I asked the authors of this paper why they went with this visual rather than a heatmap or some other type of plot. One of the co-authors, Alaine Marsden, got back to me:

We really wanted an intuitive visual way to represent the viral toggling etc present in the data. Originally tried circos plots but they weren’t very clear. I know it’s perhaps not the best implementation of an alluvial/sankey plot since we don’t have any scaling of strata or multi flow connections where the plots can really shine.

Here’s a final takeaway. We cannot short-circuit the process. I suppose we can, but then we’re probably guaranteed to generate slop. For me, the process of iterating, learning, and being part of a community are as important (more?) than getting the “perfect” figure. How about you?

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 is a livestream that I published this week that relate to previous content from these newsletters. Enjoy!

​
video preview​video 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

This newsletter is coming out the day after Thanksgiving in the US. I hope it doesn’t come off as trite, but I want you all to know how grateful I am for the engagement you all have offered me through this newsletter and on YouTube. Over the years I have really come to appreciate the creation of data visualization and reproducible workflows as a form of craftsmanship. At a time when that is valued less and less, I am grateful that I have found an audience who values developing their own...

Hey folks, Last week I mentioned a scene that I recently read from the book Underworld by Don DeLillo. Some of you were kind enough to tell me that I botched the link to the scene. Let’s try that again :) This mistake is apropos of something I’ve been thinking a lot about lately. It seems we’re obsessed with being perfect. Or at least projecting ourselves as perfect. Have you noticed how everyone in the past few years has suddenly been convinced that their writing sucks and that they need to...

Hey folks, As I mentioned last week, I’m considering jumping platforms to use Substack to disseminate these newsletters and try to build more interactivity between you all and me. Because of how different email providers process emails, it’s become very difficult to have any confidence in how many people read these emails and who all is interacting with the content. Since I pay by the subscriber I’m likely paying for subscribers who may never open the emails (although their email provider...