Learn R Programming

rbokeh (version 0.5.2)

tool_pan: Add "pan" tool to a Bokeh figure

Description

Add "pan" tool to a Bokeh figure

Usage

tool_pan(fig, dimensions = "both")

Arguments

fig

figure to modify

dimensions

a vector specifying whether the pan tool should pan with respect to the x axis ("width") and the y axis ("height") or "both"

See Also

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()

Examples

Run this code
# 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