Skip to content

Commit a796406

Browse files
committed
Bugfix for guide logic added to accomodate new ggplot2 guide logic
Issue was silently introduced by #2315, but didn't become an issue until tidyverse/ggplot2@851233f
1 parent 67fa572 commit a796406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ggplotly.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ gg2list <- function(p, width = NULL, height = NULL,
10051005
theme$legend.box.just <- theme$legend.box.just %||% c("center", "center")
10061006
# scales -> data for guides
10071007
gdefs <- if (inherits(plot$guides, "ggproto")) {
1008-
get_gdefs_ggproto(npscales$scales, theme, plot, layers, data)
1008+
get_gdefs_ggproto(npscales$scales, theme, plot, layers, layer_data)
10091009
} else {
10101010
get_gdefs(scales, theme, plot, layers)
10111011
}

0 commit comments

Comments
 (0)