ec.inspect {echarty} | R Documentation |
Chart to JSON
Description
Convert chart to JSON string
Usage
ec.inspect(wt, target = "opts", ...)
Arguments
wt |
An |
target |
type of resulting value: |
... |
Additional attributes to pass to toJSON |
Details
Must be invoked or chained as last command.
target='full' will export all JavaScript custom code, ready to be used on import.
See also ec.fromJson.
Value
A JSON string, except when target
is 'data' - then
a character vector.
Examples
# extract JSON
json <- cars |> ec.init() |> ec.inspect()
json
# get from JSON and modify plot
ec.fromJson(json) |> ec.theme('macarons')
[Package echarty version 1.6.4 Index]