Learn R Programming

g2r (version 0.1.0)

gauge_label: Gauge label

Description

Gauge label.

Usage

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

Run this code
# NOT RUN {
g2(mtcars, asp(mpg, qsec, shape = drat)) %>% 
  fig_point() %>% 
  gauge_label(textStyle = list(rotate = 30))

# }

Run the code above in your browser using DataLab