Add "crosshair" tool to a Bokeh figure

tool_crosshair(fig)

Arguments

fig

figure to modify

Note

Tools can be easily specified as a vector of tool names in the tools argument when instantiating a figure. In this case, they are added with defaults. Explicitly calling these tool_ functions will manually add the tool to a figure and allow additional specification of parameters.

See also

Examples

# \donttest{ figure() %>% ly_points(1:10) %>% tool_crosshair() # }