
Last chance! 50% off unlimited learning
Sale ends in
brush
argument of imageOutput
or
plotOutput
.
brushOpts(id = NULL, fill = "#9cf", stroke = "#036", opacity = 0.25, delay = 300, delayType = c("debounce", "throttle"), clip = TRUE, direction = c("xy", "x", "y"), resetOnNew = FALSE)
"plot_brush"
,
then the coordinates will be available as input$plot_brush
. Multiple
imageOutput
/plotOutput
calls may share the same id
value; brushing one image or plot will cause any other brushes with the
same id
to disappear."throttle"
to limit the number of brush events to one
every delay
milliseconds. Use "debounce"
to suspend events
while the cursor is moving, and wait until the cursor has been at rest for
delay
milliseconds before sending an event."xy"
, the brush can be
drawn and moved in both x and y directions. If "x"
, or "y"
,
the brush wil work horizontally or vertically.renderImage
), should the brush be reset? The default,
FALSE
, is useful if you want to update the plot while keeping the
brush. Using TRUE
is useful if you want to clear the brush whenever
the plot is updated.