|
Hey folks! I posted two videos last week! On Monday I posted a video critiquing the diverging bar plot that I described in this newsletter last Friday. My goal in this video was to think through a “constructive” approach to interpreting and critiquing data visualizations. As scientists, I think we are too worried about hurting each other’s feelings. So we don’t critique each other. At the same time, many of us think before we speak and can come off overly harsh. My goal is to create a framework where we can think and then speak and accept feedback as coming from someone that wants us to be trying to improve. Alas, not many people watched the critique video! Those who watched it and commented were pretty positive about it. So, it would be great to get more views, shares, and comments to help the algorithm offer those types of videos to people. Monday’s video was about 30 minutes long. I’d love to get them to be about 15-20 minutes. On Wednesday I posted a livestream where I did my best to recreate the plot in R with ggplot2. I’d love to get into this cadence of posting content for you all. If you have a plot you’d like to see me critique and recreate, please send it my way. This week, I have a version of a figure that John Taylor sent my way. This comes from an article in the Financial Times. John sent me a dark mode version of what the FT published on their site. I’m going to try to recreate the “light” mode version. Maybe you all could take it as a challenge to make that dark version on your own: Since I’ll present the critique on Monday, let’s focus on how I’d plan on doing this in R. First off, what is it? It’s a line plot where each line represents a different year. The y-axis is the percent change in the US Dollar Index for the year leading up to September 18th. The data for 2025 is shown in red. To generate the plot, we’re going to need data. We’re told in the lower right corner that the source is “LSEG, FT calculations”. I’ve learned not to go back to the reporter for data. I’ve never gotten anything by that approach! What is LSEG? From their website, I learned, “LSEG is a leading global financial infrastructure and data provider. We play a vital social and economic role in the world’s financial system.” Eh. I’m not sure how I’ll get data out of them either. Let’s try googling “US Dollar Index”. Voilà! Clicking on the link for yahoo! finance we can see the US Dollar Index is an ETF that people can invest in. This reminds me of a newsletter and video from a while back where I recreated a plot showing the change in the S&P500 over the first months of the current Trump administration. I was able to get the S&P500 data using the To generate the lines, I’d use something like Now to style it. First, is the red line. I’d make a dummy variable like… Second, the right-hand margin has three years indicated, 1991, 2013, and 2025. I do not know why those years were selected. They certainly aren’t the years I would have selected. Regardless, we want to recreate the figure. I’d first use Finally, the plot has some nice horizontal lines to help orient the viewer. They have horizontal grid lines under the data which is easy enough to do using the Along the way there’s some other styling we might think about like the font (perhaps Libre Franklin or Noto Sans, neither gets the “1” right) and the FT logo in the bottom left corner. Let me know what you think!
|
Hey folks, If you missed Wednesday’s livestream, I encourage you to go back and check it out. I recreated a panel from a paper published in Nature that is pretty typical. It was made up entirely of photographs. Sometimes I feel like I’m the only PI that doesn’t merge panels into figures using Illustrator or Powerpoint. I prefer to use R with some help from {cowplot} or {patchwork} to do this for me. That way I can write a single script to generate the entire set of panels. The result is a...
Hey folks, This week I’ve been teaching one of my 3 day R workshops as part of my official teaching duties at the U of Michigan. I really enjoy teaching these classes! I offer recorded versions of these workshops that use microbiome data or other types of data to help motivate my teaching of R’s tidyverse packages. If you would like to purchase your own version of these workshop click on those links! Also, if you would like me to teach a live workshop to your group, reply to this email and...
Hey folks, If you missed it, on Wednesday I did a livestream where I made a stacked barplot and pronounced it good. No, I wasn’t drinking anything! But it’s a reminder to think about the question before finding the best data visualization strategy. I think this highlights the value of the constructive approach I’ve been trying to take to critiquing data visualizations. The first steps are to establish the question and figure out the question. If you aren’t a “regular”, I think you’re really...