Description Usage Arguments Examples
Add a scrollbar to let user pan charts.
1 | mobile_scroll(m, mode = c("x", "y", "xy"), ...)
|
m |
An object of class |
mode |
Axis to apply scroll to. |
... |
Named options from the official documentation. |
1 2 3 4 5 6 7 | # range for pan
lmt <- list(x = list(min = -20, max = 20))
mobile(df, aes(x, y)) %>%
mobile_bar() %>%
mobile_interaction("pan", limitRange = lmt) %>%
mobile_scroll(mode = "x", xStyle = list(offsetY = -5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.