Control interactive plot point events — clickOpts
R/image-interact-opts.R
Description
These functions give control over the click
, dblClick
and
hover
events generated by imageOutput()
and plotOutput()
.
Arguments
- id
Input value name. For example, if the value is
"plot_click"
, then the event data will be available asinput$plot_click
.- clip
Should the click area be clipped to the plotting area? If
FALSE
, then the server will receive click events even when the mouse is outside the plotting area, as long as it is still inside the image.- delay
For
dblClickOpts()
: the maximum delay (in ms) between a pair clicks for them to be counted as a double-click.For
hoverOpts()
: how long to delay (in ms) when debouncing or throttling before sending the mouse location to the server.- delayType
The type of algorithm for limiting the number of hover events. Use
"throttle"
to limit the number of hover events to one everydelay
milliseconds. Use"debounce"
to suspend events while the cursor is moving, and wait until the cursor has been at rest fordelay
milliseconds before sending an event.- nullOutside
If
TRUE
(the default), the value will be set toNULL
when the mouse exits the plotting area. IfFALSE
, the value will stop changing when the cursor exits the plotting area.
See also
brushOpts()
for brushing events.