understanding_by_awareness: This function plots the frequency of primary_col stacked by...

Description Usage Arguments Value See Also

Description

Titled according to its first use, this function plots the frequency of primary_col stacked by secondary_col.

Usage

1
2
understanding_by_awareness(df, title_string, legend_string, color_vec,
  legend_position = c(0.06, 0.94), drop_na = TRUE)

Arguments

df

dataframe, must include columns named primary_col and seconary_col; intended to be the output of group_by_primary_sec.

title_string

string, titles plot.

legend_string

string, titles legend.

color_vec

vector, strings labelling each factor of secondary_col.

legend_position

vector, two numeric elements, where the legend goes.

drop_na

logical, whether to drop missing values.

Value

A plotly vertical bar plot.

See Also

group_by_primary_sec


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