powered by
Add "pan" tool to a Bokeh figure
tool_pan(fig, dimensions = "both")
figure to modify
a vector specifying whether the pan tool should pan with respect to the x axis ("width") and the y axis ("height") or "both"
Other tools: tool_box_select(), tool_box_zoom(), tool_crosshair(), tool_hover(), tool_lasso_select(), tool_reset(), tool_resize(), tool_save(), tool_tap(), tool_wheel_zoom()
tool_box_select()
tool_box_zoom()
tool_crosshair()
tool_hover()
tool_lasso_select()
tool_reset()
tool_resize()
tool_save()
tool_tap()
tool_wheel_zoom()
# NOT RUN { # only pan on x axis figure() %>% ly_points(1:10) %>% tool_pan(dimensions = "height") # }
Run the code above in your browser using DataLab