Learn R Programming

echarts4r (version 0.1.1)

e_brush: Brush

Description

Add a brush.

Usage

e_brush(e, x.index = NULL, y.index = NULL, ...)

Arguments

e

An echarts4r object as returned by e_charts.

x.index

Indexes of x and y axis.

y.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#brush

Examples

Run this code
# NOT RUN {
quakes %>% 
  e_charts(long) %>% 
  e_geo(
    boundingCoords = list(
      c(190, -10),
      c(180, -40)
     )
  ) %>% 
  e_scatter(lat, mag, stations, coord.system = "geo", scale = "* 1.5", name = "mag") %>% 
  e_data(quakes, depth) %>% 
  e_scatter(mag, mag, stations, scale = "* 3", name = "mag & depth") %>%  
  e_grid(right = 40, top = 100, width = "30%") %>% 
  e_y_axis(type = "value", name = "depth", min = 3.5) %>% 
  e_brush() %>% 
  e_theme("dark")

# }

Run the code above in your browser using DataLab