Learn R Programming

echarts4r (version 0.0.1)

e_area: Area

Description

Add area serie.

Usage

e_area(e, serie, bind, 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.

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

https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line

Examples

Run this code
# NOT RUN {
USArrests %>% 
  e_charts(Assault) %>% 
  e_area(Murder, stack = "grp") %>% # stacking
  e_area(UrbanPop, stack = "grp") # stacking

# }

Run the code above in your browser using DataLab