formatParamVarTextPlot {patientProfilesVis} | R Documentation |
Format text variables for the subject profile text plotting function.
Description
Text variables are wrapped across multiple lines if needed, and optionally sorted according to the levels of a grouping variable.
Usage
formatParamVarTextPlot(
data,
paramVar = NULL,
paramValueVar = NULL,
paramValueLab = NULL,
paramGroupVar = NULL,
revert = FALSE,
width = formatReport$yLabelWidth,
widthValue = ifelse(formatReport$landscape, 240, 190),
formatReport = subjectProfileReportFormat(),
table = FALSE,
colWidth = NULL
)
Arguments
data |
data.frame with data |
paramVar |
string, variable of |
paramValueVar |
string, variable of |
paramValueLab |
Character vector with labels for |
paramGroupVar |
(optional) character vector with variable(s) of
|
revert |
logical, if TRUE revert the order of the levels of the variable |
width |
max number of characters in the |
widthValue |
max number of characters in the |
formatReport |
list with parameters used to specify the format of the report,
e.g. output of the |
table |
Logical, if TRUE the |
colWidth |
Numeric vector with approximate
width of each parameter value column
for a table layout. |
Value
data
with reformatted paramVar
and paramValueVar
variables,
with additional attribute: colWidth
.
Author(s)
Laure Cougnaud