tool_wheel_pan {rbokeh}R Documentation

Add "wheel_pan" tool to a Bokeh figure

Description

Add "wheel_pan" tool to a Bokeh figure

Usage

tool_wheel_pan(fig, dimension = NULL, remove = FALSE)

Arguments

fig

Figure to modify.

dimension

Which dimension the wheel pan tool is constrained to act in. By default the wheel pan tool will pan the plot along the x-axis. Must be one of 'width' or 'height'.

remove

Logical indicating whether the tool should be removed.

See Also

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

Examples

figure(tools = NULL) %>%
  ly_points(1:10) %>%
  tool_wheel_pan(dimension = "width")

[Package rbokeh version 0.6.3 Index]