Publications by Jonathan Carroll

Even more images as x-axis labels

16.10.2018

This is the last update to this strange saga… I hope. Image labels… Photo: http://www.premierpaper.com/shop/custom-labels/ Easily two of the most popular posts on my blog are this one and this one describing a couple of ways in which I managed to hack together using an image as a category label in a ggplot. There are likely many people who ...

3858 sym R (5163 sym/2 pcs) 6 img

forcats::fct_match

22.02.2019

This journey started almost exactly a year ago, but it’s finally been sufficiently worked through and merged! Yay, I’ve officially contributed to the tidyverse (minor as it may be). It began with a tweet, recalling a surprise I encountered that day during some routine data processing Source of today's mild heart-attack: I have categories W,...

5001 sym R (1069 sym/10 pcs) 2 img

forcats::fct_match

22.02.2019

This journey started almost exactly a year ago, but it’s finally been sufficiently worked through and merged! Yay, I’ve officially contributed to the tidyverse (minor as it may be). I’m at least as useful as Zoidberg It began with a tweet, recalling a surprise I encountered that day during some routine data processing Source of today’s...

5083 sym R (5009 sym/11 pcs) 2 img

{ggtext} for images as x-axis labels

12.08.2019

I’ve written a few times about using an image as an x-axis label, and the solutions have been slowly improving. This one blows all of them out of the water. Claus Wilke (@ClausWilke) now has a {ggtext} package which can very neatly add images as x-axis labels! This makes the solution as simple as library(ggplot2) library(ggtext) library(rvest) ...

1141 sym R (7843 sym/2 pcs) 2 img

isEven without modulo

08.03.2020

You may have seen the memes going around about fun ways to program the straightforward function isEven() which returns TRUE if the input is even, and FALSE otherwise. I had a play with this and it turned into enough for a blog post, and a nice walk through some features of R. The ‘traditional’ way to check if an integer is even is to check if...

5205 sym R (6221 sym/24 pcs)

Improving a Visualization

01.07.2021

I saw this post on Reddit’s r/dataisbeautiful showing this plot of streaming services market share, comparing 2020 to 2021 US Streaming Services Market Share, 2020 vs 2021 and thought it looked like a good candidate for trying out some plot improvement techniques. Yes, that was a reasonably long while ago, this post has taken quite some time ...

4259 sym R (16130 sym/15 pcs) 26 img

Adventures in x86 ASM with rx86

22.12.2021

I just finished ‘Code: The Hidden Language of Computer Hardware and Software’ by Charles Petzold which was a really well-written (in my opinion) guided journey from flashing a light in morse code through to building a whole computer, and everything needed along the way. The section on encoding instructions for the processor (built up from log...

13820 sym R (17249 sym/53 pcs) 4 img