Description Usage Arguments Value See Also
Takes dataframe, prepares a column formed as a concatenated checklist for graphing with horizontal_bars_plot().
1 2 | checkbox_to_hbp(x, pcol = lookfor_col, scol = "Product",
pcol_strings = lookfor_strings)
|
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. |
A list containing a dataframe ready for horizontal_bars_plot() and a vector containing strings of the factors sec_col (including "Mixed" if relevant).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.