egauge: Add gauge

Description Usage Arguments See Also Examples

View source: R/add.R

Description

Add gauge.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
egauge(p, value, indicator = "", name = NULL, clickable = FALSE,
  legendHoverLink = TRUE, center = list("50%", "50%"),
  radius = list("0%", "75%"), startAngle = 225, endAngle = -45,
  min = 0, max = 100, splitNumber = 10, z = 2, zlevel = 0, tooltip,
  ...)

egauge_(p, value, indicator = "", name = NULL, clickable = FALSE,
  legendHoverLink = TRUE, center = list("50%", "50%"),
  radius = list("0%", "75%"), startAngle = 225, endAngle = -45,
  min = 0, max = 100, splitNumber = 10, z = 2, zlevel = 0, tooltip,
  ...)

Arguments

p

an echart object.

value

value to plot.

indicator

indicator appearing in center of gauge.

name

name of serie.

clickable

whether the item is clickable.

legendHoverLink

enables legend hover link.

center

center of gauge in pixels of percent.

radius

radius of gauge in pixels of percent.

startAngle, endAngle

start and end angles of gauge.

min, max

minimum and maximum of gauge.

splitNumber

number of segments.

z, zlevel

first and second grade cascading control, the higher z the closer to the top.

tooltip

customise tooltip.

...

any other arguments.

See Also

official gauge docs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
echart() %>%
  egauge(85, "SPEED")

echart() %>%
  egauge(25, "SPEED") %>%
  etheme("helianthus")

echart() %>%
  egauge(63, "PERCENT") %>%
  etheme("dark")

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.