fun_tip: Customise tooltip

Description Usage Arguments Details Examples

View source: R/options.R

Description

Customise the tooltip.

Usage

1
fun_tip(p, x = FALSE, y = FALSE, renderer = NULL)

Arguments

p

Plot as initialised by funplot.

x, y

Set to TRUE to show x and y lines.

renderer

Custom rendering function for the text shown in the tip.

Details

x = TRUE shows a dashed line parallel to y=0 on the tip position, y = TRUE shows a dashed line parallel to x=0 on the tip position

Examples

1
2
3
funplot() %>%
  fun_add("(x ^ 2) - 3") %>%
  fun_tip(TRUE, TRUE)

JohnCoene/funplot documentation built on March 19, 2018, 5:07 a.m.