subjectProfileTextPlot {patientProfilesVis} | R Documentation |
Visualize text-information in subject profiles.
Description
There are two ways to specify the variables of interest to include:
by specifying column(s) of interest containing parameter values, passed to the
paramValueVar
parameter.
In this case, variable value is displayed in the plot area, and variable name in the label of the y-axis, as:
variable 1 | value 1 - value 2 - ...
variable 2 | value 1 - value 2 - ...by specifying column(s) of interest containing parameter values, displayed as a
table
.
In this case, variable are displayed in columns in the plot area. Variable names are displayed on top of table, and associated values below, as:
| variable 1 variable 2
| value 1 value 1 | ...by specifying a combination of a variable containing the parameter name (
paramNameVar
), coupled with a variable containing the parameter values (paramValueVar
).
In this case, parameter values (if multiple) are concatenated and displayed in the plot area for each parameter name, displayed in the label of the y-axis, as:
variable name 1 | variable value 1 - variable value 2 - ...
variable name 2 | variable value 1 - ...
Usage
subjectProfileTextPlot(
data,
paramValueVar,
paramValueLab = getLabelVar(paramValueVar, labelVars = labelVars),
paramNameVar = NULL,
paramGroupVar = NULL,
subsetData = NULL,
subsetVar = NULL,
subsetValue = NULL,
subjectVar = "USUBJID",
subjectSubset = NULL,
subjectSample = NULL,
seed = 123,
xLab = "",
yLab = "",
title = "Subject information",
label = title,
labelVars = NULL,
paramVarSep = " - ",
formatReport = subjectProfileReportFormat(),
paging = TRUE,
table = FALSE,
colWidth = NULL
)
Arguments
data |
Data.frame with data. |
paramValueVar |
Character vector, either:
|
paramValueLab |
(optional) Named character vector with
labels for |
paramNameVar |
(optional) Character vector of length 1 with
variable of |
paramGroupVar |
(optional) Character vector with variable(s)
of |
subsetData |
(optional) Data.frame with extra dataset to filter on.
This dataset is filtered, and only records from |
subsetVar |
(optional) String with variable of subset data to filter on.
|
subsetValue |
(optional) Character vector with value(s) of interest to
retain in the filtered data.
These values should be available in |
subjectVar |
String, variable of |
subjectSubset |
(optional) Character vector with subjects of interest
(available in |
subjectSample |
(optional) Integer of length 1 with number of random subject(s) that should be considered, e.g. to check the created patient profiles for a subset of the data. By default, all specified subjects are considered (set to NULL). |
seed |
(optional) Integer of length 1 with seed used to select random subjects
if |
xLab |
String, label for the x-axis. |
yLab |
String, label for the y-axis. |
title |
String with title, 'Subject information' by default. |
label |
String, label for the visualization.
This label is stored as attributes of the output
from the |
labelVars |
Named character vector with variable labels (names are the variable code) |
paramVarSep |
String (' - ' by default) with character(s) used to concatenate multiple variables for the same record in the plot area. |
formatReport |
list with parameters used to specify the format of the report,
e.g. output of the |
paging |
Logical, if TRUE (by default), automatic
paging is enabled, so patient profiles module too big to fit
in one page will span multiple pages.
Please note that the size of the graphic window
(or report page) may need
to be re-sized in order that the plot fits.
|
table |
Logical, if TRUE (FALSE by default) the information
contained in the variables: |
colWidth |
Numeric vector with approximate
width of each parameter value column
for a table layout. |
Value
list of (across subjects) of list (across modules) of ggplot2 objects
,
also of class subjectProfileTextPlot
, with additional metaData
attributes containing
'label
' and 'timeLim'.
Author(s)
Laure Cougnaud
See Also
Other patient profiles plotting function:
subjectProfileEventPlot()
,
subjectProfileIntervalPlot()
,
subjectProfileLinePlot()