Skip to content

Commit f8ff7b8

Browse files
committed
ignore reverse during guide transformation
1 parent 1120b7f commit f8ff7b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/coord-.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,13 @@ Coord <- ggproto("Coord",
159159
empty <- vapply(guides, inherits, logical(1), "GuideNone")
160160
guide_params <- panel_params$guides$get_params(aesthetics)
161161
aesthetics <- aesthetics[!empty]
162+
# Guides are not subject to reverse logic
163+
temp_params <- modify_list(panel_params, list(reverse = "none"))
162164

163165
guide_params[!empty] <- Map(
164166
function(guide, guide_param, scale) {
165167
guide_param <- guide$train(guide_param, scale)
166-
guide_param <- guide$transform(guide_param, self, panel_params)
168+
guide_param <- guide$transform(guide_param, self, temp_params)
167169
guide_param <- guide$get_layer_key(guide_param, layers)
168170
guide_param
169171
},

0 commit comments

Comments
 (0)