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 094b957 commit dfcba72Copy full SHA for dfcba72
R/guide-bins.R
@@ -208,7 +208,9 @@ GuideBins <- ggproto(
208
params$show.limits <- show.limits
209
210
if (params$reverse) {
211
- key <- key[rev(seq_len(nrow(key))), , drop = FALSE]
+ ord <- seq_len(nrow(key))
212
+ key <- vec_slice(key, rev(ord))
213
+ key[params$aesthetic] <- vec_slice(key[params$aesthetic], c(ord[-1], ord[1]))
214
key$.value <- 1 - key$.value
215
}
216
0 commit comments