|
Hey folks, This week I have an interesting figure for you from the Financial Times from an e-mail newsletter they distribute each week describing some visualization related to climate change. Before reading further, go ahead and spend a few minutes with the image. What does it say to you? What do you like? What don’t you like about it? How do you think you would go about making it in R? I’d encourage you to write down any of your answers to these questions before reading what I have to say. It would be awesome if you could send me your responses just to get a sense of what other people see (feel free to reply to this email!) What does it say to me? I like the declarative title that “China accounts for almost a third of the current global emissions with a cumulative share of 16%”. What do you like? I’m not a huge fan of stacked area plots, but they did a nice job of focusing on a set of countries/regions of interest. Too often I see people try to include too many categories leading to too many colors, which makes it impossible to know which color belongs to each country. What don’t you like? All that being said, I think the legend could have been better embedded into the panels so that one doesn’t have to scan back and forth. Also, the colors are basically reddish and greenish. I get that EU27, Russia, and UK are all European-ish and could be similar colors. But why are China and US similar colors? In addition to labelling the areas directly, I’d try to pick five distinct colors. How would I make this in R? Good question! I can think of a hack approach and a more elegant approach. The hack would be to create two sets of data that are either scaled by year or over the past 175 years. Then I would use The more elegant approach would be to use Regardless of the approach to making the two panels, each panel has a stacked area plot. We can use Happily, I was able to find the data! If you go to the data hub of the Global Carbon Budget, we can download an To get the data into R, I’d use the This would be my general approach. What did you come up with? Any preference for trying to do this with
|
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...