b_tooltip: Add tooltip

Description Usage Arguments Examples

Description

Add a tooltip.

Usage

1
b_tooltip(p, show = TRUE, grouped = FALSE, order = "asc", ...)

Arguments

p

an object of class billboard.

show

set to show tooltip.

grouped

set if tooltip is grouped or not for the data points.

order

set tooltip data display order.

...

any other parameter.

Examples

1
2
3
4
5
6
7
mtcars %>%
  b_board(wt) %>%
  b_spline(mpg) %>%
  b_spline(drat, axis = "y2") %>%
  b_tooltip(grouped = TRUE) %>%
  b_xgrid(show = FALSE) %>%
  b_grid_line(14, "x = 14")

JohnCoene/billboard documentation built on May 14, 2019, 2:39 p.m.