ec.inspect {echarty}R Documentation

Chart to JSON

Description

Convert chart to JSON string

Usage

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

Arguments

wt

An echarty widget as returned by ec.init

json

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 passed as last option.

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 0.2.0 Index]