EventDuration: 'EventDuration' class constructor

Description Usage Arguments Value

View source: R/class_EventDuration.R

Description

A constructor for the EventDuration class.

Usage

1
2
EventDuration(data, startDateColumns, endDateColumns,
  label = startDateColumns[1], col = "blue", ypos = c(0.2, 0.8))

Arguments

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

Value

An object of class EventDuration


csmoxford/TreatmentData documentation built on May 3, 2019, 9:38 p.m.