ec.theme {echarty}R Documentation

Themes

Description

Apply a pre-built or custom coded theme to a chart

Usage

ec.theme(wt, name, code = NULL)

Arguments

wt

An echarty widget as returned by ec.init

name

Name of existing theme file (without extension), or name of custom theme defined in code.

code

Custom theme as JSON formatted string, default NULL.

Details

Just a few built-in themes are included in folder inst/themes. The entire collection could be found here and copied if needed.
To create custom themes or view predefined ones, visit this site.

Value

An echarty widget.

Examples

mtcars %>% ec.init() %>% ec.theme('dark-mushroom')
cars %>% ec.init() %>% ec.theme('mine', code=
  '{"color": ["green","#eeaa33"], 
    "backgroundColor": "lemonchiffon"}')


[Package echarty version 0.2.0 Index]