gauge_shape: Gauge shape

Description Usage Arguments Examples

View source: R/gauge.R

Description

Gauge shapes.

Usage

1
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

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

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