Patient-Level Interval Plot
Usage
interval_plot(
datain,
startvar,
endvar,
yvar,
seriesvar,
subjectid,
series_color = NA,
xaxislab = "Start and End Study Day",
yaxislab = ""
)
Arguments
- datain
Input events/concomitant medication dataset
- startvar
Event/Treatment Start Day Variable name (X axis)
- endvar
Event/Treatment End Day Variable name (X axis)
- yvar
Variable containing event terms or medications to be plotted in Y axis
- seriesvar
Variable to stratify plot by color or NA to have no stratification
- subjectid
Selected
USUBJID
variable value- series_color
List of colors to be assigned to levels in
seriesvar
or NA to use package defaults- xaxislab
Label for plot X axis
- yaxislab
Label for plot Y axis
Value
: a list containing 3 objects
ptly - Interactive plot output for display
plot - Static plot output for saving externally
rpt_data - Dataset used to create forest plot, for validation purpose
Examples
data(adae)
interval_plot(
datain = adae,
startvar = "ASTDY",
endvar = "AENDY",
yvar = "AEDECOD",
seriesvar = "AESEV",
subjectid = "01-701-1302",
series_color = NA,
yaxislab = "Reported Term for the Adverse Event"
)$ptly