Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Sascha Wolfer
@sascha_wolfer@fediscience.org  ·  activity timestamp yesterday

#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

Stack Overflow

How to define more line types for graphs in R (custom linetype)?

There are 6 line types defined for plots in R defined as "dashed", "longdash" ... Link How can I define more types if I have more that 6 series to plot ? The graph lines can be
A graph with two dotted lines. The dots for one of the lines are much closer together.
A graph with two dotted lines. The dots for one of the lines are much closer together.
A graph with two dotted lines. The dots for one of the lines are much closer together.
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login