2025-11-25 11:00:01
"Graphic Design with #ggplot2": All material from this 2 day workshop can be found at https://rstudio-conf-2022.github.io/ggplot2-graphic-design/
"Graphic Design with #ggplot2": All material from this 2 day workshop can be found at https://rstudio-conf-2022.github.io/ggplot2-graphic-design/
#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: https://stackoverflow.com/questions/25788945/how-to-define-more-line-types-for-graphs-in-r-custom-linetype