Tootfinder

Opt-in global Mastodon full text search. Join the index!

@sascha_wolfer@fediscience.org
2025-10-31 08:25:52

#Rstats problems: Did you ever think that the dots for dotted lines are a bit too far apart per default? TIL that it's super easy to change this.
In #ggplot2, simply try something like:
scale_linetype_manual(
values = c(a = "dotted", b = "11")
)
The '11' means: 1 point for a dot, 1 point for a gap. Find out more here: stackoverflow.com/questions/25

@datascience@genomic.social
2025-08-02 10:00:01

"Graphic Design with #ggplot2": All material from this 2 day workshop can be found at rstudio-conf-2022.github.io/gg

@sascha_wolfer@fediscience.org
2025-08-20 14:39:27

I have often been unhappy that the line type in a #ggplot2 legend is not clearly visible. Today, I found a simple solution: simply use
theme(legend.key.width = unit(1, "cm"))
Replace 1 with any other value that you like (not too small, of course!).
#rstats