Description Usage Arguments See Also
Server-side code for intent KPI gauge & slider. Uses dplyr:: functions to figure out what percentage of users intend to buy the product.
1 2 |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.