ec.inspect {echarty}R Documentation

Chart to JSON

Description

Convert chart to JSON string

Usage

ec.inspect(wt, target = NULL, json = TRUE, ...)

Arguments

wt

An echarty widget as returned by ec.init

target

NULL(default) or 'data' to show info about chart's embedded data.

json

Boolean whether to return a JSON, or a list, default TRUE

...

Additional arguments to pass to toJSON

Value

A JSON string if json is TRUE and a list otherwise.

Note

Must be invoked or chained as last command.
ec.inspect is incompatible with ec.snip

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.4.5 Index]