awarenessGauge: Wrapper for userFractionGaugeSlider server-side code for...

Description Usage Arguments See Also

View source: R/kpis.R

Description

Wrapper for userFractionGaugeSlider server-side code for awareness KPI gauge & slider.

Usage

1
2
3
4
awarenessGauge(input, output, session, fdat, pcol = awareness_col,
  pos_options = "No", symbol = "%", title = "Aware due to Morsel",
  minRange = 0, maxRange = 100, reversed_values = FALSE,
  reversed_colors = FALSE)

Arguments

input

Required for shiny modules' server functions.

output

Required for shiny modules' server functions.

session

Required for shiny modules' server functions.

fdat

dataframe, filtered by demographic variables and product.

pcol

numeric, the number of fdat's column containing the question of interest.

pos_options

vector, all the strings in fdat[[pcol]] that are considered 'good' responses.

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

awarenessGaugeUI, userFractionGaugeSlider


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