Connect charts
Connect charts together.
e_connect(e, ids) e_group(e, group) e_connect_group(e, group) e_disconnect_group(e, group = NULL) e_arrange(..., rows = NULL, cols = NULL, width = "xs", title = NULL)
e |
An |
ids |
Scalar, vector or list of ids of chart to connect with. |
group |
Group name. |
... |
Any |
rows, cols |
Number of rows and columns. |
width |
Wdith of columns, one of |
title |
Title of charts. |
e_arrange
: in an interactive session, returns a htmltools::browsable
, in rmarkdown
returns a
container (htmltools::div
).
e_connect
: connects charts by ids
, cannot be disconnected.
e_group
: assigns a group to chart.
e_connect_group
: connects chart with another group.
e_disconnect_group
: diconnects chart from group.
e_arrange
: arrange charts.
e_arrange
may not work properly in the RStudio viewer.
# 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 if (interactive()) { e_arrange(e1, e2, title = "Linked datazoom") }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.