Description Usage Arguments Interactions Examples
Add interactions on pan, pinch, bar selection or pie selection.
1 |
m |
An object of class |
interaction |
Name of the interaction. |
... |
Named options from the official documentation. |
bar-select
pie-select
pinch
pan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | df <- data.frame(
x = letters[1:5],
y = runif(5)
)
mobile(df, aes(x, y)) %>%
mobile_bar() %>%
mobile_interaction("bar-select")
df <- data.frame(
x = 1:20,
y = runif(20, 1, 10)
)
mobile(df, aes(x, y)) %>%
mobile_bar() %>%
mobile_interaction("pan", limitRange = list(x = list(min = -20, max = 40)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.