View source: R/report_addReferenceLinesProfilePlot.R
addReferenceLinesProfilePlot | R Documentation |
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
)
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 |
If addLabel
is:
TRUE
: list with:
'gg': ggplot2
plot with reference lines
'ggRefLines': ggplot2
plot containing only
the labels at the specified position
FALSE
: ggplot2
plot with reference lines
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.