tooltip: Tooltip

Description Usage Arguments Examples

View source: R/tooltip.R

Description

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

Usage

1

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

1
2
3
4
5
6
g2(mtcars, asp(drat, qsec, color = hp)) %>%
  fig_point() %>%
  tooltip(
    showCrosshairs = TRUE,
    crosshairs = list(type = "xy")
  )

devOpifex/g2r documentation built on Jan. 16, 2022, 12:36 a.m.