Collin Berke @collinberke.bsky.social · 11/05/2025Spent more time exploring {scales} for #ggplot2. I found the `label_dictionary()` function to be useful for relabeling the values of a discrete scale using a lookup table: scales.r-lib.org/reference/la... Here's what I came up with, using some NCAA basketball data from the #rstats {hoopR} package👇 4114
Collin Berke @collinberke.bsky.social · 11/05/2025Here's a GitHub Gist with a reprex: gist.github.com/collinberke/...gist.github.comUse {scales} R package's `label_dictionary()` to relabel values of a discrete scaleUse {scales} R package's `label_dictionary()` to relabel values of a discrete scale - r-scales-label-dictionary.R 000
Collin Berke @collinberke.bsky.social · 11/05/2025With help from: 📦 {hoopR}: hoopr.sportsdataverse.org/index.html 📦 {ggbeeswarm}: github.com/eclarke/ggbe... 010
Rodrigo Barreiro @rodrigo404.bsky.social · 12/05/2025Couldn’t it be achieved by adding the lookup table directly to labels parameter? 000