intents_by_awareness_bar: Plotly bar chart for intents by brand awareness.

Description Usage Arguments Value

View source: R/functions.R

Description

Plotly bar chart for intents by brand awareness. Uses percents. Future improvement: aggregate intents by user; get user intents rather than response intents.

Usage

1
2
intents_by_awareness_bar(dt, title_string, legend_string, col_vec,
  dropSecNA = TRUE, legend_position = list(x = 0.05, y = 0.95))

Arguments

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.

Value

A plotly bar plot.


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