reasons_by_product_chart: Helper function for reasonsByProduct()

Description Usage Arguments Value See Also

View source: R/reasons_tab.R

Description

Helper function for reasonsByProduct(); generates plot. Makes use of group_by_primary_sec(), bp().

Usage

1
reasons_by_product_chart(top_cols, rank, title, fdat, color_vec)

Arguments

top_cols

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

rank

numeric, the x of top x; eg. rank = 1 –> top column; rank = 2 –> 2nd top column

title

string, the title of the plot.

fdat

dataframe, filtered by demographic variables and product.

color_vec

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

Value

A plotly plot.

See Also

reasonsByProduct, group_by_primary_sec, bp


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