Create an object representing brushing options — brushOpts
brushOpts( id, fill = "#9cf", stroke = "#036", opacity = 0.25, delay = 300, delayType = c("debounce", "throttle"), clip = TRUE, direction = c("xy", "x", "y"), resetOnNew = FALSE )
Arguments
id |
Input value name. For example, if the value is |
---|---|
fill |
Fill color of the brush. If |
stroke |
Outline color of the brush. If |
opacity |
Opacity of the brush |
delay |
How long to delay (in milliseconds) when debouncing or throttling, before sending the brush data to the server. |
delayType |
The type of algorithm for limiting the number of brush
events. Use |
clip |
Should the brush area be clipped to the plotting area? If FALSE, then the user will be able to brush outside the plotting area, as long as it is still inside the image. |
direction |
The direction for brushing. If |
resetOnNew |
When a new image is sent to the browser (via
|
Description
This generates an object representing brushing options, to be passed as the
brush
argument of imageOutput()
or
plotOutput()
.
See also
clickOpts()
for clicking events.