Description Usage Arguments Value See Also
Helper function for reasonsByProduct(); generates plot. Makes use of group_by_primary_sec(), bp().
1 | reasons_by_product_chart(top_cols, rank, title, fdat, color_vec)
|
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", ...) |
A plotly plot.
reasonsByProduct
, group_by_primary_sec
, bp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.