Add brush interactions.

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

range <- range(cars$speed) g2(cars, asp(speed, dist)) %>% fig_point() %>% interact_brush()