Learn R Programming

echarts4r (version 0.2.0)

e_step: Step

Description

Add step serie.

Usage

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

Additional arguments

Examples

Run this code
# NOT RUN {
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")

# }

Run the code above in your browser using DataLab