Description Usage Arguments Note See Also Examples
Add "box_zoom" tool to a Bokeh figure
1 2 3 4 5 6 7 8 9 10 | tool_box_zoom(
fig,
line_color = "black",
line_alpha = 1,
fill_color = "lightgrey",
fill_alpha = 0.5,
line_width = 2,
line_dash = c(4, 4),
level = "overlay"
)
|
fig |
figure to modify |
line_color, line_alpha, fill_color, fill_alpha, line_width, line_dash, level |
parameters to control the look of the selection bounding region |
Tools can be easily specified as a vector of tool names in the tools
argument when instantiating a figure
. In this case, they are added with defaults. Explicitly calling these tool_
functions will manually add the tool to a figure and allow additional specification of parameters.
Other tools:
tool_box_select()
,
tool_crosshair()
,
tool_hover()
,
tool_lasso_select()
,
tool_pan()
,
tool_reset()
,
tool_resize()
,
tool_save()
,
tool_tap()
,
tool_wheel_zoom()
1 2 | figure() %>% ly_points(1:10) %>%
tool_box_zoom()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.