Bar Chart by Group and Reasons
Arguments
- df
A
data.framecontaining the participant level dataset with eligibility- varGroupID
A variable to make the stacked bar chart with, i.e. invid.
- varCompreas
A variable to identify study completion/discontinuation reasons
- strGroupLabel
A
stringto label thevarGroupIDin reference to axes, legend, footnotes.- bSwapAxes
A
booleanto denote whether or not the y-axis and fill groups should be swapped.