Compute x-axis visit levels for categorical/bar plots
get_plot_visit_levels.RdReturns the ordered visit labels as they appear on the plot axis, including duplicate-handling expansions for categorical data (e.g. "WEEK 6" becomes "WEEK 6 01", "WEEK 6 02" when a patient has multiple observations at that visit).
Arguments
- param_ids
Character vector of parameter_id values.
- df_measures
Data frame as returned by
prepare_measures().- plot_type
Either
"categorical"or"bar".