I want to create a time-line graph (with ggplot function?) in R for 276 cases separately but displayed in one figure. They are exposed to different treatments for different times and can have multiple events. I want to mark exposure to different treatments by using colors and mark events during these treatment strategies in this graph (e.g. with dots).
Does someone know (partly) how to do this?