Stores event duration data and plot formatting information.
An object of class EventDuration
data
A data.frame containing the necessary data
startDateColumns
A vector of columns contain the start of treatment times
endDateColumns
A vector of columns contain the end of treatment times. These are paired with startDateColumns
label
A short name for the treatment
ypos
A vector of length 2. This specifies the vertical min and max to plot the rect in
col
The colour to use for each treatment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.