reasonsByProduct: For making "By Product" option in server-side "Reasons" tab.

Description Usage Arguments See Also

View source: R/reasons_tab.R

Description

For making "By Product" option in server-side "Reasons" tab. Call with callModule(). Makes use of helper function reasons_by_product_chart().

Usage

1
reasonsByProduct(input, output, session, fdat, top_cols, color_vec)

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.

top_cols

vector, contains the numbers of fdat's columns containing the top x answers.

color_vec

vector of strings, colours for the plots (ie. the colour each product is plotted as) eg. c("#FF0000", ...)

See Also

reasonsByProductUI, reasons_by_product_chart


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