Skip to content

Commit eed6156

Browse files
committed
Quick fix for single group dodge-stacking.
1 parent bbcff4d commit eed6156

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/position-dodge.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ pos_dodge <- function(df, width, n = NULL, stackOverlap = "no") {
151151
n <- vec_unique_count(df$group)
152152
}
153153

154-
if (n == 1)
155-
return(df)
154+
# even if it's a single group we might need to dodge stack
155+
#if (n == 1)
156+
# return(df)
156157

157158
if (!all(c("xmin", "xmax") %in% names(df))) {
158159
df$xmin <- df$x

0 commit comments

Comments
 (0)