gaugechart: gauge chart function

View source: R/gaugechart.R

gaugechartR Documentation

gauge chart function

Description

Creates a gauge chart of an integer or a numeric value.

Usage

gaugechart(
  gauge_value,
  max_value,
  type,
  mode,
  title,
  title_size,
  axis_tick_width,
  border_width,
  threshold_width,
  threshold_thickness,
  font_family,
  primary_color,
  secondary_color,
  tertiary_color,
  quaternary_color,
  quinary_color,
  senary_color
)

Arguments

gauge_value

An integer or a numeric value

max_value

An integer or a numeric value

type

The type of the gauge chart

mode

The mode of the gauge chart

title

The title of the gauge chart

title_size

The size of the title of the gauge chart

axis_tick_width

The tick width of the axis of the gauge chart

border_width

The border width of the gauge chart

threshold_width

The threshold width

threshold_thickness

The thickness of the threshold

font_family

The font family of the text in the gauge chart

primary_color

The primary color

secondary_color

The secondary color

tertiary_color

The tertiary color

quaternary_color

The quaternary color

quinary_color

The quinary color

senary_color

The senary color

Details

This function creates a gauge chart based on an integer or a numeric value.

Value

A gauge chart

Author(s)

Ruben Vanhecke

at import ggplot2 at import plotly

Examples

  ## Not run: 
     gaugechart(25, 100, 
"indicator", "gauge+number", 
"Visitors inside", 
24, 1, 2, 4, 0.75, 
"Arial",
       
"#004D9A", "#002142", "#0069D2", 
"#0180FF", "#4FA7FF", 
"#A7D3FF")
  
## End(Not run)




yForecasting/businessplots documentation built on Jan. 8, 2025, 6:26 p.m.