plotly_json: Inspect JSON sent to plotly.js

Description Usage Arguments Examples

View source: R/dev.R

Description

This function is useful for obtaining/viewing/debugging JSON sent to plotly.js.

Usage

1
2
plotly_json(p = last_plot(), jsonedit = interactive(), pretty = TRUE,
  ...)

Arguments

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

Examples

1
2
3

trafficonese/plotly_mini documentation built on Sept. 14, 2019, 9:51 p.m.