mouseButton | R Documentation |
Mouse button identification
mouseButton(buttons)
buttons |
vector passed to callbacks used by getGraphicsEvent. |
Identify left and right mouse button clicks from the buttons vector passed to the callbacks used by getGraphicsEvent. This is non-trivial because the windows and MacOS behaviours are subtly different.
Returns 1 for left click, 2 for right click and 0 otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.