Initialise a chart.

e_charts(data, x, width = NULL, height = NULL, elementId = NULL,
  dispose = TRUE, renderer = "canvas", ...)

e_charts_(data, x = NULL, width = NULL, height = NULL,
  elementId = NULL, dispose = TRUE, renderer = "canvas", ...)

e_chart(data, x, width = NULL, height = NULL, elementId = NULL,
  dispose = TRUE, renderer = "canvas", ...)

e_data(e, data, x)

Arguments

data

A data.frame.

x

Column name containing x axis.

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

elementId

Id of element.

dispose

Set to TRUE to force redraw of chart, set to FALSE to update.

renderer

Renderer, takes canvas (default) or svg.

...

Any other argument.

e

An object of class echarts4r as returned by e_charts.

Examples

mtcars %>% e_charts_("qsec") %>% e_line(mpg)