diff --git a/R/position-dodge2.r b/R/position-dodge2.r index 3b430d914d..8531db0243 100644 --- a/R/position-dodge2.r +++ b/R/position-dodge2.r @@ -4,7 +4,7 @@ #' shrunk by this proportion to allow space between them. Defaults to 0.1. #' @param reverse If `TRUE`, will reverse the default stacking order. #' This is useful if you're rotating both the plot and legend. -position_dodge2 <- function(width = NULL, preserve = c("single", "total"), +position_dodge2 <- function(width = NULL, preserve = c("total", "single"), padding = 0.1, reverse = FALSE) { ggproto(NULL, PositionDodge2, width = width, diff --git a/man/position_dodge.Rd b/man/position_dodge.Rd index 519e514b1d..21122a3055 100644 --- a/man/position_dodge.Rd +++ b/man/position_dodge.Rd @@ -7,7 +7,7 @@ \usage{ position_dodge(width = NULL, preserve = c("total", "single")) -position_dodge2(width = NULL, preserve = c("single", "total"), +position_dodge2(width = NULL, preserve = c("total", "single"), padding = 0.1, reverse = FALSE) } \arguments{