Skip to content

Commit b1a7a58

Browse files
authored
Adding the option seed = 0 into the jitter argument (#6035)
Fixes #5875
1 parent 09d5c35 commit b1a7a58

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Config/testthat/edition: 3
7878
Encoding: UTF-8
7979
LazyData: true
8080
Roxygen: list(markdown = TRUE)
81-
RoxygenNote: 7.3.1
81+
RoxygenNote: 7.3.2
8282
Collate:
8383
'ggproto.R'
8484
'ggplot-global.R'

R/position-jitter.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#' geom_jitter(position = position_jitter(width = 0.1, height = 0.1))
4242
#'
4343
#' # Create a jitter object for reproducible jitter:
44-
#' jitter <- position_jitter(width = 0.1, height = 0.1)
44+
#' jitter <- position_jitter(width = 0.1, height = 0.1, seed = 0)
4545
#' ggplot(mtcars, aes(am, vs)) +
4646
#' geom_point(position = jitter) +
4747
#' geom_point(position = jitter, color = "red", aes(am + 0.2, vs + 0.2))

man/position_jitter.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)