From dfe64aec7ea02383baf4dfc38a967004e11557fb Mon Sep 17 00:00:00 2001 From: Kara Woo Date: Sun, 29 Apr 2018 14:44:07 -0700 Subject: [PATCH] Swap order of preserve arguments in position_dodge2() --- R/position-dodge2.r | 2 +- man/position_dodge.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{