powered by
Add basic plot callbacks, will only be available in Shiny.
plot_callbacks(g2)
An object of class g2r as returned by g2r.
g2r
A list containing x and y pixel coordinates of clicked/entered/left.
list
x
y
This function will add the following callbacks
plot_enter
plot_leave
plot_click