mastodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance, open to everyone, but mainly English and French speaking.

Administered by:

Server stats:

743
active users

#ggplot2

7 posts7 participants1 post today

This week's #TidyTuesday looks at data from Our World in Data on the Gini coefficient (a measure of income inequality) before and after tax 📊

I quite like this style of small multiple chart when there are lots of categories - a zoomed in version with more explanation, then more minimalist versions for the smaller versions. It helps avoiding too much clutter, whilst still giving the extra information users need!

Code: github.com/nrennie/tidytuesday

I recently saw a kind of stacked donut/pie chart that visualized nested count data (e.g. a sample description with two relevant categories, like favorite ice cream and gender) and wondered how I'd do that in #rstats.

So, if you ever want to make a plot like this, here's the #ggplot2 and #dplyr code: gist.github.com/Kudusch/577b6f

This wouldn't work well with too many categories and pie charts in general aren't optimal, but for this specific kind/shape of data, I think it works well enough.

Looking forward to giving a 4-hour workshop on #dataviz at the First Summer School on Linguistic Creativity in Bielefeld tomorrow! #Vorfreude

UPDATE ⬇️

That was a lot of fun and we manage to cover a lot in four hours! The slides can be found here (but please note that they are not intended as self-learning materials): elenlefoll.quarto.pub/2025-bie and the practical #ggplot2 part was based on Chapter 10 of my in-progress textbook: elenlefoll.github.io/RstatsTex.