
The example below uses arrows to demonstrate patients remaining on treatment after the end of follow up AE_plot+
Other aesthetics can be manipulated using geom_segment() arguments.
Features of the arrows which can be modified include the size, length and type of arrow. An additional argument “cont” can be used if only some bars will have an arrow. The required arguments are a dataframe, an id column name, and the column names of the location the arrows begin. Arrows are added at the end of bars with the swimmer_arrows() function.
Knitr::kable(head(ClinicalTrial.Response,10)) id Knitr::kable(head(ClinicalTrial.Arm,10)) id The data is stored in three dataframes, ClinicalTrial.Arm, ClinicalTrial.AE, and ClinicalTrial.Response
This is a clinical trial of 36 patients in which patients are randomized to one of two treatment arms, at 5 months patients are intended to switch arms, for each patient the adverse events and response information is recorded.