We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ddb6d9 commit d54fd69Copy full SHA for d54fd69
R/position-dodge2.r
@@ -138,7 +138,7 @@ find_x_overlaps <- function(df) {
138
overlaps[1] <- counter <- 1
139
140
for (i in seq_asc(2, nrow(df))) {
141
- if (is.na(df$xmin[i]) || is.na(df$xmax[i - 1]) || df$xmin[i] >= df$xmax[i - 1]) {
+ if (is.na(df$xmin[i]) || is.na(df$xmax[i - 1]) || df$xmin[i] > df$xmax[i - 1]) {
142
counter <- counter + 1
143
}
144
overlaps[i] <- counter
0 commit comments