Skip to content

Commit f552634

Browse files
committed
put get_layer_key() before transform()
1 parent 18e9f32 commit f552634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/coord-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ Coord <- ggproto("Coord",
163163
guide_params[!empty] <- Map(
164164
function(guide, guide_param, scale) {
165165
guide_param <- guide$train(guide_param, scale)
166+
guide_param <- guide$get_layer_key(guide_param, layers, data)
166167
guide_param <- guide$transform(guide_param, self, panel_params)
167-
guide_param <- guide$get_layer_key(guide_param, layers)
168168
guide_param
169169
},
170170
guide = guides[!empty],

0 commit comments

Comments
 (0)