Skip to content

Commit 54c289e

Browse files
committed
fix coord_flip() case
1 parent b853c8c commit 54c289e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/coord-flip.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ CoordFlip <- ggproto("CoordFlip", CoordCartesian,
8989
},
9090

9191
setup_panel_params = function(self, scale_x, scale_y, params = list()) {
92+
params$expand <- params$expand[c(2, 1, 4, 3)]
9293
parent <- ggproto_parent(CoordCartesian, self)
9394
panel_params <- parent$setup_panel_params(scale_x, scale_y, params)
9495
flip_axis_labels(panel_params)

0 commit comments

Comments
 (0)