Skip to contents

Changes the mouse cursor style for a Plotly figure from the default crosshair to the standard arrow cursor.

Usage

ro_ply_cursor(fig)

Arguments

fig

A Plotly figure object created by plotly::plot_ly() or similar.

Value

A Plotly figure object with the cursor style set to "default" (arrow).

Examples

if (FALSE) { # \dontrun{
fig <- plotly::plot_ly(data = mtcars, x = ~mpg, y = ~hp, type = 'scatter', mode = 'markers')
fig_cursor <- ro_ply_cursor(fig)
fig_cursor
} # }