Add line serie.

e_line(e, serie, bind, name = NULL, legend = TRUE, y.index = 0,
  x.index = 0, coord.system = "cartesian2d", ...)

e_line_(e, serie, bind = NULL, name = NULL, legend = TRUE, y.index = 0,
  x.index = 0, coord.system = "cartesian2d", ...)

Arguments

e

An echarts4r object as returned by e_charts.

serie

Column name of serie to plot.

bind

Binding between datasets, namely for use of e_brush.

name

name of the serie.

legend

Whether to add serie to legend.

y.index

Indexes of x and y axis.

x.index

Indexes of x and y axis.

coord.system

Coordinate system to plot against.

...

Any other option to pass, check See Also section.

See also

Examples

USArrests %>% dplyr::mutate(State = row.names(.)) %>% e_charts(Assault) %>% e_line(Murder) %>% e_line(UrbanPop, State, y.index = 1) %>% # second y axis e_tooltip(trigger = "axis")