Learn R Programming

g2r (version 0.1.0)

interact: Brush

Description

Add brush interactions.

Usage

interact_brush(g2)

interact_slider(g2, ...)

interact_zoom(g2, ...)

interact_drag(g2, ...)

Arguments

g2

An object of class g2r as returned by g2r.

...

Any option, aesthetic (asp), or animation (Animation).

Examples

Run this code
# NOT RUN {
range <- range(cars$speed)

g2(cars, asp(speed, dist)) %>% 
  fig_point() %>% 
  interact_brush()

# }

Run the code above in your browser using DataLab