Plot single-timepoint categorical data as a bar chart
plot_bar.RdFor parameters with a single timepoint (e.g. screening weight category). Dispatches to stacked bar or CI bar depending on number of timepoints.
Arguments
- param_ids
Character vector of one-hot encoded
parameter_idvalues.- df_measures
Data frame as returned by
prepare_measures().- thresh
Numeric, score threshold for highlighting.
- sites
Character vector of site IDs to show. If NULL, auto-selected.
- visit_order
Character vector of visit labels in desired x-axis order, or NULL for default (timepoint_rank) ordering.