Description Usage Arguments See Also
Server-side code for a generic KPI gauge. Uses dplyr:: functions to figure out the percentage.
1 2 | percentGauge(input, output, session, fdat, pcol, p_options, gauge_label,
reversed_values = FALSE)
|
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. |
p_options |
vector, all the strings in fdat[[pcol]] that are counted as positive (e.g. "Yes"). |
gauge_label |
string, label for gauge |
reversed_values |
logical, indicates whether to flip values (e.g. gauge_value <- 100 - gauge_value ) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.