Gauge label.

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

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