gauge_label: Gauge label

Description Usage Arguments Examples

View source: R/gauge.R

Description

Gauge label.

Usage

1
gauge_label(g2, ..., callback = NULL)

Arguments

g2

An object of class g2r as returned by g2r.

...

Any option, aesthetic (asp), or animation (Animation).

callback

A JavaScript callback function (see cb) which returns a color.

Examples

1
2
3
g2(mtcars, asp(mpg, qsec, shape = drat)) %>% 
  fig_point() %>% 
  gauge_label(textStyle = list(rotate = 30))

JohnCoene/g2r documentation built on March 6, 2021, 8:11 p.m.