Add bar serie.

e_bar(e, serie, bind, name = NULL, legend = TRUE, y_index = 0,
  x_index = 0, coord_system = "cartesian2d", ...)

e_bar_(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.

x_index, y_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

library(dplyr)
#> #> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’: #> #> filter, lag
#> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union
mtcars %>% mutate( model = row.names(.), total = mpg + qsec ) %>% arrange(desc(total)) %>% e_charts(model) %>% e_bar(mpg, stack = "grp") %>% e_bar(qsec, stack = "grp")