Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

e_brush

Brush


Description

Add a brush.

Usage

e_brush(e, x_index = NULL, y_index = NULL, brush_link = "all", ...)

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

x_index

Indexes of x and y axis.

y_index

Indexes of x and y axis.

brush_link

Links interaction between selected items in different series.

...

Any other option to pass, check See Also section.

brush_link

$

  • c(3, 4, 5), for interacting series with seriesIndex as 3, 4, or 5.

  • all, for interacting all series.

  • none for disabling.

See Also

Examples

quakes %>%
  e_charts(long) %>%
  e_geo(
    boundingCoords = list(
      c(190, -10),
      c(180, -40)
    )
  ) %>%
  e_scatter(lat, mag, stations, coord.system = "geo", name = "mag") %>%
  e_data(quakes, depth) %>%
  e_scatter(mag, mag, stations, 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")

echarts4r

Create Interactive Graphs with 'Echarts JavaScript' Version 5

v0.4.0
Apache License (>= 2.0)
Authors
John Coene [aut, cre, cph], Wei Su [ctb], Helgasoft [ctb], Xianying Tan [ctb] (<https://orcid.org/0000-0002-6072-3521>)
Initial release
2021-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.