James Clawson

@jmclawson@hcommons.social
74 Followers
123 Following
30 Posts
Recovering literature professor, Louisiana ⇾ Chicago.#DigitalHumanities, dogs, #RStats, and cheesecake. Utter newb.
Websitehttps://jmclawson.net
Githubhttps://github.com/jmclawson
@eliocamp here’s hoping for something new that is %notin% the language 😄

Building a #Shiny app with #RStats to track real-time train arrivals at my local station was satisfying and did the job I wanted.

But getting a small touchscreen to have it all run locally on an unused #RaspberryPi makes it *unspeakably* enjoyable.

I made a useful toy!

🥳 I’m excited to share that I have a new essay published in a collection on Durrell, Heresy, and Heterotopia. 🎉

To celebrate, please enjoy this blog post introducing the work, sharing some of the figures… and yes, even offering a few corrections. 🙈

#DigitalHumanities

https://jmclawson.net/posts/2025-09-heterotopia-figures/

@michcampbell If your data set were bigger, you’d probably also see it for Europium (Eu) and Terbium (Tb) 😄.

In the meantime, I’ve found that adding a space is sufficient to get around the bug. In your code, you can modify labs(title = el…) to something like this:

labs(title = paste0(el, “ “) …etc

@michcampbell @koantig it’s actually looking like it’s a graphics driver bug causing all the problems, not ggsave() or Positron. Both issues led here: https://github.com/r-lib/ragg/issues/193
Esoteric bug with specific text · Issue #193 · r-lib/ragg

Hi Thomas, This is a transfer of tidyverse/ggplot2#6539. Essentially, when trying to render the text 'Sr' and 'Fe', it renders 'Sr' twice instead of each once. In the reprex below, this is why we o...

GitHub

@koantig @michcampbell Thanks for checking! I see the problem in Positron version 2025.07.0 build 204, R 4.5.0, ggplot2 3.5.2, macOS 15.4.1.

With all else the same, I don’t see it in RStudio 2025.05.0 build 496, nor do I see it in R 4.5.0 GUI 1.81.

@michcampbell To add to the confusion of it all, I see different things in different IDEs. In Positron, the code I screenshotted above seems to always be a problem.

library(ggplot2)
simple_plot <- function(title){
mtcars |>
ggplot(aes(x = disp, y = mpg)) +
geom_point() +
labs(title = title)
}

simple_plot("Fe")
simple_plot("Sr")

*Only with these two character strings* as far as I’ve tested, whichever I call first will also display for the second. And this only happens in Positron, not in RStudio, where I have the same package versions installed.

@michcampbell The problem seems to come before ggsave or lapply. I see similar behavior with this simpler code. The title "Fe" gets replaced with "Sr" 🤷‍♂️ #RStats

Edit: The problem doesn’t persist in a new session. So hard to debug! 🫠

From shower idea to #Shiny app in two days. 😅 A little late for last week’s #TidyTuesday but I couldn’t stop myself from adding a bit more! Movable Data Type explores Project Gutenberg data across different storage backends, comparing structure and performance, running custom queries, and visualizing distributions. #RStats #SQL https://jmclawson.shinyapps.io/movable-datatype/
@LeafyEricScott This was such a nice surprise. Looking at a Python syllabus, I thought {plotnine} would be my weakest area, only to discover it was my strongest! 😄