View source: R/report_subjectProfileCombine.R
subjectProfileCombine | R Documentation |
Visualizations of different modules are combined by subject. The plots are aligned in the time axis (if requested). If the plots should be aligned:
the same time limits are set for all plots
the time axis is transformed if any of the plot was created with a time transformation
the time axis is expanded for all plots
if any of the plot was created with a time axis expanded.
The expansion
object for
the combined plot is created
from the max of each expansion element across modules.
If some plots are missing for a specific subject,
an empty plot is created, containing information
as a text based on the label
with which the plot was created.
subjectProfileCombine( listPlots, timeLim = NULL, timeAlign = "all", timeAlignPerSubject = "none", subjectVar = "USUBJID", maxNLines = NULL, refLines = NULL, refLinesData = NULL, refLinesTimeVar = NULL, refLinesLabelVar = NULL, shiny = FALSE, verbose = FALSE, nCores = 1, reportPerSubject = FALSE )
listPlots |
listPlots per subject as created inside the
|
timeLim |
time limits, as returned by the
|
timeAlign |
Character vector with time alignment across modules/subjects, either:
|
timeAlignPerSubject |
Character vector, specifying if the plots should be aligned (or not) across subjects
Only the modules already specified in |
subjectVar |
String, variable of |
maxNLines |
Maximum number of lines for a combined plot,
to fit in the page height. |
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 |
shiny |
logical, set to TRUE (FALSE by default)
if the report is generated from a Shiny application.
Messages during report creation will be included in the Shiny interface,
and it will be mentioned at the end of the report.
In this case, the |
verbose |
logical, if TRUE print messages during execution |
nCores |
Integer containing the number of cores used for the computation
(1 by default). If more than 1, computation is parallelized, in this case
the package |
reportPerSubject |
Logical, if TRUE (FALSE by default) export a subject profile report by subject. |
a nested list of ggplot
object,
containing the combined
profile plots across modules for each subject/page.
Each plot object contains in the associated attribute:
metaData
containing: nLines
: an estimation
of the number of 'lines' each plot occupies
(e.g. to set height of the exported figure).
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.