fractionGauge: Server-side code for generic KPI gauge.

Description Usage Arguments See Also

View source: R/gating.R

Description

Server-side code for generic KPI gauge. Uses dplyr:: functions to figure out what percentage of users were previous aware of the product.

Usage

1
2
3
4
fractionGauge(input, output, session, frac, threshold, symbol = "%",
  title = "Indicator", minRange = 0, maxRange = 100,
  reversed_values = FALSE, reversed_colors = FALSE,
  colours = c("success", "warning", "danger"))

Arguments

input

Required for shiny modules' server functions.

output

Required for shiny modules' server functions.

session

Required for shiny modules' server functions.

frac

numeric, reactive value for gauge

threshold

reactive, numeric or a vector of two numerics, the cutoff between positive and negative colors / positive, neutral, and negative colors.

symbol

string, indicates unit of numeric output (eg. "%").

title

string, title for gauge.

minRange

numeric, minimum value for gauge.

maxRange

numeric, maximum value for gauge.

reversed_values

logical, indicates whether to flip values (e.g. gauge_value <- maxRange - gauge_value )

reversed_colors

logical, indicates whether low values are 'good'/green and high values are 'bad'/red or not.

See Also

fractionGaugeUI based off of userFractionGauge


IskanderBlue/morseldash documentation built on Oct. 30, 2019, 7:24 p.m.