Add step serie.

e_step(e, serie, bind, step = c("start", "middle", "end"),
  fill = FALSE, name = NULL, legend = TRUE, y.index = 0,
  x.index = 0, ...)

e_step_(e, serie, bind = NULL, step = c("start", "middle", "end"),
  fill = FALSE, name = NULL, legend = TRUE, y.index = 0,
  x.index = 0, ...)

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.

step

Step type, one of start, middle or end.

fill

Set to fill as area.

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.

...

Any other option to pass, check See Also section.

See also

Examples

USArrests %>% dplyr::mutate(State = row.names(.)) %>% e_charts(State) %>% e_step(Murder, name = "Start", step = "start", fill = TRUE) %>% e_step(Rape, name = "Middle", step = "middle") %>% e_step(Assault, name = "End", step = "end") %>% e_tooltip(trigger = "axis")