Open fkohrt opened 2 months ago
Thanks for pointing this out. The position adjustment should be constructed as follows jitter <- position_jitter(width = 0.1, height = 0.1, seed = 0)
and then it does what it should. The example should be updated to reflect this.
It seems to me, the last of the examples of
position_jitter()
does not work as intended. In other words: The following code...https://github.com/tidyverse/ggplot2/blob/8e63882c3c36259785baac0eed5d51525bc40f70/R/position-jitter.R#L43-L47
...does not seem to simply shift the jittered points:
But maybe I misunderstood what the example is supposed to show?