Initialise a chart.

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

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

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

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.

...

Any other argument.

e

An object of class echarts4r as returned by e_charts.

Examples

USArrests %>% dplyr::mutate( state = row.names(.) ) %>% e_charts_("state") %>% e_line(Rape)