R: Interactive inputs bound to arrow keys.

left_right {ggvis} | R Documentation

## Interactive inputs bound to arrow keys.

### Description

Interactive inputs bound to arrow keys.

### Usage

    left_right(min, max, value = (min + max)/2, step = (max - min)/40)

    up_down(min, max, value = (min + max)/2, step = (max - min)/40)

### Arguments

`min` | A minimum value.
`max` | A maximum value.
`value` | The initial value before any keys are pressed. Defaults to half-way between `min` and `max`.
`step` | How much each key press changes `value`. Defaults to 40 steps along range

### Examples

    size <- left_right(1, 801, value = 51, step = 50)
    opacity <- up_down(0, 1, value = 0.9, step = 0.05)

    mtcars %>% ggvis(~mpg, ~wt, size := size, opacity := opacity) %>%
      layer_points()

[Package ggvis version 0.4.3 Index]