csatGauge: Server-side code for intent KPI gauge & slider.

Description Usage Arguments See Also

View source: R/csat_tab.R

Description

Server-side code for intent KPI gauge & slider. Uses dplyr:: functions to figure out what percentage of users intend to buy the product.

Usage

1
2
csatGauge(input, output, session, ddat, pcol, title, color_cutoff,
  minRange, maxRange, reversed, symbol = "")

Arguments

input

Required for shiny modules' server functions.

output

Required for shiny modules' server functions.

session

Required for shiny modules' server functions.

ddat

dataframe, data filtered by desired variables (probably demographic or demographic and product).

pcol

numeric, number of the column in fdat containing data for gauge.

title

string, gauge's title.

color_cutoff

numeric, cutoff between different colours for the gauge.

minRange

numeric, gauge's minimum value.

maxRange

numeric, gauge's maximum value.

reversed

logical, denotes whether gauge colours should be reversed (ie. warning colour for high values, happy colour for low values).

symbol

string, e.g. "%" or "miles" or whatever unit your gauge is showing.

See Also

intentGaugeUI


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