powered by
Add brush interactions.
interact_brush(g2)interact_slider(g2, ...)interact_zoom(g2, ...)interact_drag(g2, ...)
interact_slider(g2, ...)
interact_zoom(g2, ...)
interact_drag(g2, ...)
An object of class g2r as returned by g2r.
g2r
Any option, aesthetic (asp), or animation (Animation).
asp
Animation
# NOT RUN { range <- range(cars$speed) g2(cars, asp(speed, dist)) %>% fig_point() %>% interact_brush() # }
Run the code above in your browser using DataLab