plotly_json | R Documentation |
This function is useful for obtaining/viewing/debugging JSON sent to plotly.js.
plotly_json(p = last_plot(), jsonedit = interactive(), pretty = TRUE, ...)
p |
a plotly or ggplot object. |
jsonedit |
use listviewer::jsonedit to view the JSON? |
pretty |
adds indentation whitespace to JSON output. Can be TRUE/FALSE or a number specifying the number of spaces to indent. See jsonlite::prettify. |
... |
other options passed onto listviewer::jsonedit |
plotly_json(plot_ly())
plotly_json(plot_ly(), FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.