Mark points and lines.

e_mark_point(e, serie = NULL, data = NULL, ...)

e_mark_line(e, serie = NULL, data = NULL, ...)

e_mark_area(e, serie = NULL, data = NULL, ...)

Arguments

e

An echarts4r object as returned by e_charts.

serie

Serie or vector of series to mark on passed to grep, defaults to all series.

data

Placement.

...

Any other option to pass, check See Also section.

See also

Examples

max <- list( name = "Max", type = "max" ) min <- list( name = "Min", type = "min" ) avg <- list( type = "average", name = "AVG" ) mtcars %>% e_charts(mpg) %>% e_line(wt) %>% e_line(drat) %>% e_line(cyl) %>% e_mark_point("wt", data = max) %>% e_mark_point(c("cyl", "drat"), data = min) %>% e_mark_line(data = avg) %>% # applies to all e_mark_area(serie = "wt", data = list( list(xAxis = "min", yAxis = "min"), list(xAxis = "max", yAxis = "max")) )