plot_trial: Function for visualizing the simulated trial
Description
This function creates a plot visualizing the trial progress over time.
Usage
plot_trial(treatments)
Value
ggplot showing trial progress over time.
Arguments
treatments
Vector with indices of assigned arms for each participant, ordered by time, e.g. column treatment from the dataframe resulting from the datasim_bin() or datasim_cont() function.