rbokeh (version 0.5.1)

tool_wheel_zoom: Add "wheel_zoom" tool to a Bokeh figure

Description

Add "wheel_zoom" tool to a Bokeh figure

Usage

tool_wheel_zoom(fig, dimensions = "both")

Arguments

fig

figure to modify

dimensions

a vector specifying whether the wheel_zoom tool should zoom 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_pan(), tool_reset(), tool_resize(), tool_save(), tool_tap()

Examples

Run this code
# NOT RUN {
# only zoom on x axis
figure() %>% ly_points(1:10) %>%
 tool_wheel_zoom(dimensions = "height")
# }

Run the code above in your browser using DataCamp Workspace