addReferenceLinesProfilePlot {patientProfilesVis} | R Documentation |
Add reference lines to a profile plot
Description
Add reference lines to a profile plot
Usage
addReferenceLinesProfilePlot(
gg,
subjectVar = "USUBJID",
refLines = NULL,
refLinesData = NULL,
refLinesTimeVar = NULL,
refLinesLabelVar = NULL,
refLinesColor = "black",
refLinesLinetype = "dotted",
timeLim = NULL,
addLabel = FALSE
)
Arguments
gg |
|
subjectVar |
String, variable of |
refLines |
(optional) nested list with details for reference line(s). Each sublist contains:
|
refLinesData |
data.frame with data from which the reference line(s) should be extracted |
refLinesTimeVar |
string, variable of |
refLinesLabelVar |
string, variable of |
refLinesColor |
vector of length 1 with default color for reference line(s) |
refLinesLinetype |
vector of length 1 with default linetype for reference line(s) |
timeLim |
vector of length 2 with time limits. This is used to set the limits to the plot containing the reference lines labels (if requested). |
addLabel |
logical, if TRUE (FALSE by default) add the label of the reference line(s) at the bottom of the plot |
Value
If addLabel
is:
TRUE
: list with:FALSE
:ggplot2
plot with reference lines
Author(s)
Laure Cougnaud