Description Usage Arguments Value
Plotly bar chart for intents by brand awareness. Uses percents
.
Future improvement: aggregate intents by user; get user intents rather than response intents.
1 2 | intents_by_awareness_bar(dt, title_string, legend_string, col_vec,
dropSecNA = TRUE, legend_position = list(x = 0.05, y = 0.95))
|
dt |
dataframe, its primary column of interest must already be renamed primary_col and its secondary column of interest – the column by which the bars will be stacked – sec_col. |
title_string |
string, for plot title. |
legend_string |
string, for plot legend title. |
col_vec |
vector of strings labelling colours. |
dropSecNA |
logical, whether to drop NA/ "Decline to state" factors from sec_col. |
legend_position |
list with two named numerics (x and y), position of legend on plot. |
A plotly bar plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.