Configure the tooltip applied to the entire chart. See gauge_tooltip() to customise a specific tooltip (the tooltip of a specific figure).

tooltip(g, ...)

Arguments

g

An object of class g2r or g2Proxy as returned by g2() or g2_proxy().

...

Options to pass to the axis, pass FALSE to hide the axis. Visit the official documentation for the full list of options.

Examples

g2(mtcars, asp(drat, qsec, color = hp)) %>%
  fig_point() %>%
  tooltip(
    showCrosshairs = TRUE,
    crosshairs = list(type = "xy")
  )