tool_lasso_select {rbokeh}R Documentation

Add "lasso_select" tool to a Bokeh figure

Description

Add "lasso_select" tool to a Bokeh figure

Usage

tool_lasso_select(fig, select_every_mousemove = TRUE, line_color = NULL,
  line_alpha = NULL, fill_color = NULL, fill_alpha = NULL,
  line_width = NULL, line_dash = NULL, line_dash_offset = NULL,
  line_join = NULL, line_cap = NULL, names = NULL, callback = NULL,
  remove = FALSE)

Arguments

fig

Figure to modify.

select_every_mousemove

Whether a selection computation should happen on every mouse event, or only once, when the selection region is completed. Default: True

line_color

The line color values for the polygon.

line_alpha

The line alpha values for the polygon.

fill_color

The fill color values for the polygon.

fill_alpha

The fill alpha values for the polygon.

line_width

The line width values for the polygon.

line_dash

The line dash values for the polygon.

line_dash_offset

The line dash offset values for the polygon.

line_join

The line join values for the polygon.

line_cap

The line cap values for the polygon.

names

A list of names to query for. If set, only renderers that have a matching value for their "name" attribute will be used.

callback

A callback to run in the browser on every selection of a lasso area. The cb_data parameter that is available to the Callback code will contain one LassoSelectTool-specific field: :geometry: object containing the coordinates of the lasso area.

remove

Logical indicating whether the tool should be removed.

See Also

Other tools: tool_box_select, tool_box_zoom, tool_crosshair, tool_help, tool_pan, tool_poly_select, tool_redo, tool_reset, tool_save, tool_undo, tool_wheel_pan, tool_wheel_zoom, tool_zoom_in, tool_zoom_out

Examples

figure(tools = NULL) %>%
  ly_points(1:10) %>%
  tool_lasso_select(line_color = "red", callback = "console.log('calling back...')")

[Package rbokeh version 0.6.3 Index]