Exploratory Community

How to create a swimmer plot?

#1

How can I make a swimmer plot?
The data are structured in columns as follows:

  1. Patient_ID
    2, Event_Shape (shape for symbols that denote a common event, eg TREATMENT symbols can be circles, RESPONSE symbols triangles…)
  2. Event_Color (color for each level of the Event_Shape, e.g., red circle = chemotherapy, blue circle = immunotherapy etc.)
  3. Start date
  4. End date
    Start date and end date are the SAME for symbols, but different for “events” that continue over several weeks or months and so should be plotted as lines?