whenPlot: Server-side code for when question plot.

Description Usage Arguments See Also

View source: R/intents_tab.R

Description

Server-side code for when question plot.

Usage

1
2
whenPlot(input, output, session, fdat, pcol, title, response_colors,
  product_colors, plot_type)

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.

pcol

numeric, number of column in fdat containing plot's primary column of interest; shown in pie plots, height of bar plots.

title

string, the title of the plot.

response_colors

vector, colours for pie plot (colours pcol options); strings (eg. c("#FF00FF", "#00FFFF", "00FF00")).

product_colors

vector, colours for bar plot (colours product options); strings (eg. c("#FF00FF", "#00FFFF", "00FF00")).

plot_type

string, indicator selecting between bar and pie plot ("Bar" or "Pie (%)").

See Also

spc, group_by_primary_sec, understanding_by_awareness

Other intent plots: consumePlot, intentPlotUI, purchasePlot, recommendPlot, regularPlot, replacePlot, similarPlot


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