|
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 skills to do something better than “Ikea Science” or (perhaps worse) “Walmart Science”. Last night I was scanning through recently published papers in Nature and came across this figure: There’s a lot going on here, but I got hung up on the titles to their two legends: “Expression (%)” and “Average expression”. After spotting similar figures in other papers, I realized that this is a pretty common way of presenting single cell RNAseq data. The “Expression (%)” likely refers to the fraction of cells in that group that were expressing that gene and “Average expression” is the level of expression among those cells. I bring up this example as an example of ways that we often try to present data in new ways. Depending on our audience, these visualizations may be effective or they might be distracting and confusing. I contend that a paper published in Nature is being published because it is broadly significant, not just because it’s the best of its field. With this in mind, I’d hope that their visualizations would be accessible to a pretty intelligent audience that is more than likely from outside the field. Broadly significant science should be broadly accessible. Understanding your audience and targeting them is a fundamental part of designing a data visualization. Years ago I recall hearing someone talk about the infographics published in USA Today. When I was a kid, I remember seeing a plot on the bottom of the front page with some factoid about life in the US or current events. These were often very simple figures. I think pie charts, waffle charts, and bar plots were the norm. Maybe a line plot if the editors were feeling edgy. They were targeting their audience. During the COVID-19 pandemic, I recall the self-reflection by the NY Times and others about using log10 scaled y-axes to show the number of cases and deaths. They eventually realized that even the hoity-toity NY Times audience didn’t have a clue how to interpret the axis. I suspect many scientists don’t either! There’s a pile of commonly used data visualizations I see in the literature that similar to my first examples are confusing to most scientists. This is likely because they’re new approaches, edgy, or just confusing. They include violin plots, trees on a radial coordinate system, circular cord diagrams, upset plots, and probably a few I’m forgetting. Some of these we have gotten used to over time. Although many think violin plots are ugly and a poor choice when there’s limited data, I think they’ve been around enough that we understand what they’re doing. I have yet to hear a good explanation for why a tree benefits from being circularized (or what is gained by a tree with more than 20 tips). One visualization type that I’ve been asked a lot about are upset plots. They look like there’s a lot of information baked into them. In the best case they’re just confusing. In the worst case, they’re deceiving and confusing. Take this example that was included as part of “Genome-scale metabolic modelling identifies vaginal microbiome members as potential probiotics” authored by Glass et al. this summer in Nature Microbiology. This pair of panels is a pretty simple version of an upset plot. In panel b are bar plots showing the number of unique reactions that are host, pathogen, or probiotic-associated. The black dot in the table below the bar chart substitutes as the legend. Panel c has another bar plot showing the overlap between all pairs of the three groups as well as between all three groups. Again the table below shows us which groups are being compared to find the number of reactions shared between the groups. This upset plot has some unique features. First, sometimes the barplots shown in b and c will show the count of things that only show up in that group and not an other comparison so that the total of all the bars adds up to the number of all things being counted. Second, sometimes there will be an additional barplot across the rows - basically the data from panel b. We can think of an upset plot as the table with the black dots and lines connecting those dots with bar plots added to the columns and rows to indicate the size of that set of conditions. Getting all this? That’s a lot parts to keep track of! What if I told you that the bar plots were really just telling us the size of the unique and overlapping regions in a three-way Venn/Euler diagram? Now does it make more sense? I’ll say more about this particular plot next week, but I think the upset plot here is a bit of overkill compared to what it could have been with a Venn diagram. Also, I’m not sure that we actually have all the parts in this diagram to get the value that would go into a Venn diagram. Regardless, an upset plot is probably most effective with 5 or more groups since although there are 5 and 6 set Venn diagrams they’re pretty weird. Again, remember your audience. If you are going to present your data with an upset plot, you will likely need to spend some time in a talk walking your audience through the plot and your text in a paper will need to spend some time drawing out for your audience what you want them to see. By the time you’ve gotten through all that, perhaps you’ll have found a better way to represent the data. Still, if you like bananas, this is the best Venn diagram ever. Score one for Nature.
|
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...
Hey folks, Can you let me know if you use substack to read and comment on newsletters? I’m thinking about changing platforms for this newsletter and would love to get your opinion on what the experience on substack is like for you as an audience member versus through an email newsletter like this one. Something amazing happened on Wednesday morning. At some point earlier in the week, I updated the software I use to do my Wednesday’s streams, which is called OBS. Upon launching OBS I got a...