understandingPlot: Server-side function for understanding plot.

Description Usage Arguments See Also

View source: R/awareness_tab.R

Description

Server-side function for understanding plot. Makes use of spc(), fo(), conflicting_evaluations(), horizontal_bars_plot().

Usage

1
2
3
understandingPlot(input, output, session, fdat, understanding_col,
  awareness_col, color_vec, legend_string = "Previous Awareness",
  arrange_by_total = TRUE)

Arguments

input

Required for shiny modules' server functions.

output

Required for shiny modules' server functions.

session

Required for shiny modules' server functions.

fdat

dataframe, dat but filtered by demographic variables and product.

understanding_col

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

awareness_col

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

color_vec

vector, colours for the awareness factors; strings (eg. c("#FF00FF", "#00FFFF", "00FF00")).

legend_string

string, title of plot legend labelling awareness_col factors.

arrange_by_total

logical, whether to reorder factors by count.

See Also

understandingPlotUI, spc, fo, conflicting_evaluations, horizontal_bars_plot


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