Skip to content

Commit e4da4a6

Browse files
committed
document
1 parent 3e667f9 commit e4da4a6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

R/position-dodge2.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#' @rdname position_dodge
33
#' @param padding Padding between elements at the same position. Elements are
44
#' shrunk by this proportion to allow space between them. Defaults to 0.1.
5+
#' @param group_row Relationship between groups and rows. Can be `"single"` if
6+
#' every row represents a single group, or `"many"` if many rows represent
7+
#' a group.
58
position_dodge2 <- function(width = NULL, preserve = "total",
69
padding = 0.1, reverse = FALSE,
710
group_row = "single") {
@@ -10,7 +13,7 @@ position_dodge2 <- function(width = NULL, preserve = "total",
1013
preserve = arg_match0(preserve, c("total", "single")),
1114
padding = padding,
1215
reverse = reverse,
13-
group_row = group_row
16+
group_row = arg_match0(group_row, c("single", "many"))
1417
)
1518
}
1619

man/position_dodge.Rd

Lines changed: 6 additions & 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)