checkbox_to_hbp: Takes dataframe, prepares it for horizontal_bars_plot().

Description Usage Arguments Value See Also

Description

Takes dataframe, prepares a column formed as a concatenated checklist for graphing with horizontal_bars_plot().

Usage

1
2
checkbox_to_hbp(x, pcol = lookfor_col, scol = "Product",
  pcol_strings = lookfor_strings)

Arguments

x

dataframe

pcol

string or numeric, column of primary interest; ends up being named sec at end of function.

scol

string or numeric, column of seconday interest; how the bar graph's colors will be stacked.

pcol_strings

vector of 5 strings (in future, generalize this; not sure how yet), pcol's 'pure' values.

Value

A list containing a dataframe ready for horizontal_bars_plot() and a vector containing strings of the factors sec_col (including "Mixed" if relevant).

See Also

horizontal_bars_plot


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