Skip to content

Commit a1a19fc

Browse files
karawoothomasp85
authored andcommitted
Fix position_dodge2() example (#3340)
1 parent 95f9529 commit a1a19fc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

R/position-dodge.r

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#' ggplot(mtcars, aes(factor(cyl), fill = factor(vs))) +
1818
#' geom_bar(position = "dodge2")
1919
#'
20-
#' # By default, dodging with `position_dodge2()` preserves the width of each
21-
#' # element. You can choose to preserve the total width with:
20+
#' # By default, dodging with `position_dodge2()` preserves the total width of
21+
#' # the elements. You can choose to preserve the width of each element with:
2222
#' ggplot(mtcars, aes(factor(cyl), fill = factor(vs))) +
23-
#' geom_bar(position = position_dodge(preserve = "total"))
23+
#' geom_bar(position = position_dodge2(preserve = "single"))
2424
#'
2525
#' \donttest{
2626
#' ggplot(diamonds, aes(price, fill = cut)) +

man/position_dodge.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)