Gauge shapes.

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

g2(mtcars, asp(mpg, qsec, shape = am)) %>% fig_point() %>% gauge_shape(c("hollowDiamond", "hollowBowtie"))