Skip to content

Commit c170737

Browse files
committed
Let gg2list() return a figure object
1 parent fafbff9 commit c170737

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/ggplotly.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,8 @@ gg2list <- function(p){
886886
flipped.layout[["yaxis"]] <- x
887887
}
888888

889-
flipped.traces$kwargs <- list(layout=flipped.layout)
889+
fig <- list(data=flipped.traces, layout=flipped.layout)
890+
891+
fig
890892

891-
flipped.traces
892893
}

0 commit comments

Comments
 (0)