Add reference lines to a profile plot
addReferenceLinesProfilePlot(
gg,
subjectVar = "USUBJID",
refLines = NULL,
refLinesData = NULL,
refLinesTimeVar = NULL,
refLinesLabelVar = NULL,
refLinesColor = "black",
refLinesLinetype = "dotted",
timeLim = NULL,
addLabel = FALSE
)
If addLabel
is:
ggplot2
with
a subject profile plot for a specific subject (and page)
(subset of the output of the subjectProfile[X]Plot
)
String, variable of data
with subject ID
(optional) nested list with details for reference line(s). Each sublist contains:
(required) 'label': string with label for the reference line
(required) 'time': unique time (x) coordinate for the reference line
(optional) 'color': color for the reference line, 'black' by default
(optional) 'linetype': linetype for the reference line, 'dotted' by default
data.frame with data from which the reference line(s) should be extracted
string, variable of refLinesData
with time for reference line(s)
string, variable of refLinesData
with label for reference line(s)
vector of length 1 with default color for reference line(s)
vector of length 1 with default linetype for reference line(s)
vector of length 2 with time limits. This is used to set the limits to the plot containing the reference lines labels (if requested).
logical, if TRUE (FALSE by default) add the label of the reference line(s) at the bottom of the plot
Laure Cougnaud