Learn R Programming

g2r (version 0.1.0)

gauge_shape: Gauge shape

Description

Gauge shapes.

Usage

gauge_shape(g2, shapes = NULL, callback = NULL)

Arguments

g2

An object of class g2r as returned by g2r.

shapes

A vector of shapes.

callback

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

Examples

Run this code
# NOT RUN {
g2(mtcars, asp(mpg, qsec, shape = am)) %>% 
  fig_point() %>% 
  gauge_shape(c("hollowDiamond", "hollowBowtie"))

# }

Run the code above in your browser using DataLab