Description Usage Arguments Examples
Visualise attrition data as a barplot
1 2 3 4 5 |
data |
dataframe. |
label |
Unquoted name of column indicating selection criteria |
n |
Unquoted name of column indicating cohort size |
sort |
Either NULL (no sorting), 'a' for ascending, or 'd' for descending |
show_p |
logical. Should percentages be included? |
N_max |
numeric. Maximum value used in calculating percentages. Defaults to the maximum value observed in the data. |
bar_fill |
character. Optional bar fill and border color |
bar_col |
character. Optional bar border color |
bar_alpha |
numeric. Alpha of bar |
label_pos |
character. Position of labels, either "b", "m", or "l" |
title_pos |
character. Position of title, either "m" for margins, or "l" for left side of plot |
wrap_width |
integer. Optional integer indicating how much to wrap selection criteria text |
flip |
logical. Should axes be flipped? |
nudge_title |
numeric. Nudging of title |
nudge_lab |
numeric. Nudging of label |
type |
character. Type of plot. Currently must be 'bar' |
label_pos |
character. Position of labels, either "t" for top, or "b" for bottom. |
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.