We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64abe0d commit 4e8aac0Copy full SHA for 4e8aac0
R/dev.R
@@ -12,7 +12,7 @@
12
#' plotly_json(plot_ly())
13
#' plotly_json(plot_ly(), FALSE)
14
15
-plotly_json <- function(p = plot_ly(), jsonedit = interactive(), ...) {
+plotly_json <- function(p = last_plot(), jsonedit = interactive(), ...) {
16
plotlyJSON <- to_JSON(plotly_build(p)$x, pretty = TRUE)
17
if (jsonedit) {
18
if (system.file(package = "listviewer") == "") {
0 commit comments