Description Usage Arguments Value
View source: R/class_EventDuration.R
A constructor for the EventDuration
class.
1 2 | EventDuration(data, startDateColumns, endDateColumns,
label = startDateColumns[1], col = "blue", ypos = c(0.2, 0.8))
|
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 |
col |
The colour to use for each treatment |
ypos |
A vector of length 2. This specifies the vertical min and max to plot the rect in |
An object of class EventDuration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.