Add "box_zoom" tool to a Bokeh figure
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")
figure to modify
parameters to control the look of the selection bounding region
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
tool_box_select
tool_crosshair
tool_hover
tool_lasso_select
tool_pan
tool_reset
tool_resize
tool_save
tool_tap
tool_wheel_zoom
# NOT RUN { figure() %>% ly_points(1:10) %>% tool_box_zoom() # }
Run the code above in your browser using DataLab