connections: Connect charts

Description Usage Arguments Value Functions Note Examples

Description

Connect charts together.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

Arguments

e

An echarts4r object as returned by e_charts.

ids

Scalar, vector or list of ids of chart to connect with.

group

Group name.

...

Any echarts objects.

rows, cols

Number of rows and columns.

width

Wdith of columns, one of xs, md, lg.

title

Title of charts.

Value

e_arrange: in an interactive session, returns a browsable, in rmarkdown returns a container (div).

Functions

Note

e_arrange may not work properly in the RStudio viewer.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# linked datazoom
e1 <- cars %>% 
  e_charts(
    speed,
    height = 200
  ) %>% 
  e_scatter(dist) %>% 
  e_datazoom(show = FALSE) %>% 
  e_group("grp") # assign group
  
e2 <- cars %>% 
  e_charts(
    dist,
    height = 200
  ) %>% 
  e_scatter(speed) %>% 
  e_datazoom() %>% 
  e_group("grp") %>%  # assign group
  e_connect_group("grp") # connect

e_arrange(e1, e2, title = "Linked datazoom")

JohnCoene/echarts4r documentation built on Sept. 18, 2019, 2:24 a.m.