|
Hey folks! This week I have a figure for you from the New York Times based on a poll they did with Siena that describes Americans’ sentiments concerning Israel’s actions in their war with Gaza. What does it say to me? This plot is saying that more Americans think that Israel is intentionally killing civilians than they did in December 2023. The change in percentage of people in the other categories seems to decrease accordingly. What do you like? I love slope plots! I think they’re a great strategy for showing the change in a variable between two time points. As always, I am a fan of the NY Times minimalist aesthetic to plots. What don’t you like? Although the war has been in the news for several years now, I’m not sure that Americans - in general - have a very good sense of what’s going on or how Israel is waging the war. This somewhat comes through in the percentage that don’t have an opinion. For December 2023 the three categories only add to 72% and for September 2025 they add to 81%. I feel like that’s a big pool of people with no opinion. How would I make this in R? Good question! Several things stand out to me. First, the slope plot itself. There are lines and points at the end of the lines. I imagine having a data frame with three columns - date, sentiment, and percentage. I’d map the date to the x-axis and the percentage to the y-axis. Then I’d group and color the lines by the sentiment. We can draw the lines with Second, the points and lines are labelled. The plot includes the percentage of respondents with each of the three sentiments at each date. The text label uses a bold font for “Intentionally” and “Unintentionally” and a regular font for the third category. I actually forget if I can vectorize the Third, I already mentioned the x-axis line. I’ll need to figure out how to get the x-axis text to not be centered under the tick. Again, I’m not sure if I can vectorize the Finally, they have some fun stuff going on with their titles and captions! I count three bits of text above the plot. Within What do you think about this plot? I’d love to get your insights. It’s likely you have an idea that is better than mine or at least having a try at. Stay tuned for a future YouTube video when I try to implement this figure.
|
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...