mobile_interaction: Add Interactions

Description Usage Arguments Interactions Examples

View source: R/interactions.R

Description

Add interactions on pan, pinch, bar selection or pie selection.

Usage

1

Arguments

m

An object of class mobile as returned by mobile.

interaction

Name of the interaction.

...

Named options from the official documentation.

Interactions

Examples

 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)))

RinteRface/mobileCharts documentation built on Feb. 14, 2020, 2:31 a.m.