Skip to content

Commit dd62b63

Browse files
committed
position is function of layout, not plot
1 parent 6d6a5a3 commit dd62b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ gg2list <- function(p, width = NULL, height = NULL, tooltip = "all",
185185
data <- by_layer(function(l, d) l$compute_geom_1(d))
186186

187187
# Apply position adjustments
188-
data <- by_layer(function(l, d) l$compute_position(d, plot))
188+
data <- by_layer(function(l, d) l$compute_position(d, layout))
189189

190190
# Reset position scales, then re-train and map. This ensures that facets
191191
# have control over the range of a plot: is it generated from what's

0 commit comments

Comments
 (0)