ec.inspect {echarty} | R Documentation |
Convert chart to JSON string
ec.inspect(wt, target = NULL, json = TRUE, ...)
wt |
An |
target |
NULL(default) or 'data' to show info about chart's embedded data. |
json |
Boolean whether to return a JSON, or a |
... |
Additional arguments to pass to toJSON |
A JSON string if json
is TRUE
and
a list
otherwise.
Must be invoked or chained as last command.
ec.inspect is incompatible with ec.snip
# extract JSON
json <- cars |> ec.init() |> ec.inspect()
json
# get from JSON and modify plot
ec.fromJson(json) |> ec.theme('macarons')