staticScatterplotClinData {clinDataReview} | R Documentation |
Scatterplot of variables of interest for clinical data visualization
Description
Scatterplot of variables of interest for clinical data visualization
Usage
staticScatterplotClinData(
data,
xVar,
yVar,
xLab = getLabelVar(xVar, labelVars = labelVars),
yLab = getLabelVar(yVar, labelVars = labelVars),
aesPointVar = list(),
pointPars = list(),
aesLineVar = list(),
linePars = list(),
lineInclude = length(c(aesLineVar, linePars)) > 0,
aesSmoothVar = list(),
smoothPars = list(),
smoothInclude = length(c(aesSmoothVar, smoothPars)) > 0,
aesLab,
xTrans = "identity",
yTrans = "identity",
xPars = list(),
yPars = list(),
xLabVars = NULL,
yLim = NULL,
xLim = NULL,
yLimExpandData = TRUE,
xLimExpandData = TRUE,
title = paste(c(paste(yLab, "vs", xLab), titleExtra), collapse = "<br>"),
titleExtra = NULL,
facetPars = list(),
facetType = c("wrap", "grid"),
scalePars = list(),
themePars = list(legend.position = "bottom"),
refLinePars = NULL,
labelVars = NULL,
hoverVars = NULL,
geomType = c("point", "col")
)
Arguments
data |
Data.frame with input data. |
xVar |
String with column of |
yVar |
String with column of |
xLab |
String with label for |
yLab |
String with label for |
aesPointVar |
List with specification of aesthetic variable(s),
for the point, passed to the |
pointPars |
List with parameters other than aesthetic variables to pass to |
aesLineVar |
List with specification of aesthetic variable(s),
for the line, passed to the |
linePars |
List with parameters other than aesthetic variables to pass to |
lineInclude |
Logical, if TRUE (by default if |
aesSmoothVar |
List with specification of aesthetic variable(s),
for the smoothing layer, passed to the |
smoothPars |
List with parameters other than aesthetic variables to pass to |
smoothInclude |
Logical, if TRUE (by default if one of |
aesLab |
Named character vector with labels for each aesthetic variable. |
xTrans , yTrans |
Transformation for the x/y- variables,
passed to the |
xPars , yPars |
List with extra parameters for x/y axis, passed to the
|
xLabVars |
Character vector with variable(s) to be displayed
as the labels of the ticks in the x-axis. |
xLim , yLim |
Numeric vector of length 2 with limits for the x/y axes. |
xLimExpandData , yLimExpandData |
Logical (TRUE by default), should the
limits specified via |
title |
String with title for the plot. |
titleExtra |
String with extra title for the plot (appended after |
facetPars |
List with facetting parameters, passed to the facetting function. |
facetType |
String with facetting type, either:
|
scalePars |
List with parameters to customize
scales. Each sublist should contains a set of parameters
passed to the |
themePars |
List with general theme parameters
(see |
refLinePars |
(optional) Nested list, with parameters for each reference line(s). Each sublist (a.k.a reference line) contains:
|
labelVars |
Named character vector containing variable labels. |
hoverVars |
Character vector with variables to be displayed in the hover,
by default |
geomType |
String with type of the geom used, either:
|
Value
ggplot
object
Author(s)
Laure Cougnaud, Adriaan Blommaert