Hey folks, I’ve now produced three livestream videos. What do you think? Do you watch them live or watch them later? Or are they too long? I’m looking for honest feedback! I have to admit that if I hadn’t livestreamed these videos, they would not have been produced. It’s nice that I can more or less record and post without any editing. This is still a bit of an experiment. I think fewer people are watching the episodes which makes me worry that this might be an overall step backwards for you all. I want what I do to have maximum benefit, so please don’t hesitate to respond to this email and let me know what you think. Yesterday morning, I received a newsletter from Philip Bump who writes a column for the The Washington Post. He has a couple of newsletters, but this one is an “add on” to his columns where he shares more of the data behind what goes into his columns. Although not overly complicated, I thought this would be a fun “basic” plot for beginners but enough ornamentation for more advanced R users. This plot was an add on to his column on a generational rift in the Democratic Party in the aftermath of the New York City mayoral primary election. In this plot he uses March 2025 data from Gallup to compare how the two parties differ in their support for Israelis versus Palestinans. So, how would I go about making this plot? We need the data. If you go to the Gallup article, the second plot has three tabs. One each for Democrats, Republicans, and Independents. The plots show the percent, by party, who support Israelis or Palestinians. In the lower left corner of the plot is a link to “Get the data”, which downloads a CSV-formatted file for the data in each plot. We’ll need to get both the Democrat and Republican datasets. Also, we’ll need to go back to the first plot and get the data for “All Americans”. For each of these files, we’ll need to read them in and join them into a single tibble. We can read the three files in to a single tibble using Again, at the fundamental level, this is a line plot with three groups. We can do this in Now for the ornamentation. First, the axes will need some help. There are no axis titles or ticks. Those can be removed with Second, the gridline choices are “interesting”. The y-axis gridlines look fairly standard. However, we’ll have to add a thicker black line at zero. For the x-axis gridlines he has one at 2016 and October 7, 2023. We’ll have to make those x-axis gridlines and the zero line using Finally, there is text in the right hand margin indicating what each line represents. We can place the text using All in all, this should be a less intense plot than what I’ve been making lately. At the same time, we get to practice some fun stuff with text. I think it will also give an opportunity to compare how we use
|
Hey folks! Do you ever get that feeling where you’re scared to try something? But then you do it anyway… and it turns out way better than you expected? Well that was me on Wednesday morning. I ran my first livestream on YouTube recreating a ridgeline plot from Our World in Data showing the US baby boom. I wrote about it here in the newsletter back in May. The full session was about 2.5 hours. YouTube tells me that 272 people popped in at some point during the session. To be honest, I really...
Hey folks, I need your feedback on an idea! Don’t worry, there’s some visualization stuff at the bottom. I had a video nearly ready to post this week using a ridgeline plot to show the baby boom. I think I did a great job of recreating the plot. But through a series of unfortunate events, I lost the video. I actually recorded the video three times because my computer kept crashing as I was recording it. This was on top of increasing busyness on my part with teaching, proposal writing,...
Hey folks, I really enjoyed teaching a one-day, introduction to ggplot2 workshop last week. It was a lot of fun - I enjoyed teaching the principles behind ggplot2. I’ve been noticing many learners (and teachers) focusing on making templates that they can recycle to make variations on a common plot type. This is how I often teach ggplot2 and the rest of the tidyverse - it’s also how I learned R. In the most recent workshop I was testing a hypothesis that teaching concepts would yield more long...