ec.snip {echarty}R Documentation

Options list shortcut

Description

Utility to improve readability and typing speed

Usage

ec.snip(wt)

Arguments

wt

A widget to be converted to option list
OR an option list to a plot

Details

On initialization, add ec.snip at the end of the ec.init pipe,
or set for the entire R session with options('echarty.short'=TRUE).
Note: ec.theme, ecr.ebars, ec.inspect will not work with the session setting.

Examples

p <- cars |> ec.init() |> ec.snip()
p$dataZoom <- list(start=70)   # instead of p$x$opts$dataZoom
p$legend  <- list(show=TRUE)   # instead of p$x$opts$tooltip
ec.snip(p)                     # instead of just p


[Package echarty version 1.4.5 Index]