powered by
Convert chart to JSON string
ec.inspect(wt, target = NULL, json = TRUE, ...)
A JSON string if json is TRUE and a list otherwise.
json
TRUE
list
An echarty widget as returned by ec.init
echarty
NULL(default) or 'data' to show info about chart's embedded data.
Boolean whether to return a JSON, or a list, default TRUE
Additional arguments to pass to toJSON
Must be invoked or chained as last command.
# extract JSON json <- cars |> ec.init() |> ec.inspect() json # get from JSON and modify plot ec.fromJson(json) |> ec.theme('macarons')
Run the code above in your browser using DataLab