getTimeLimSubjectProfilePlots {patientProfilesVis} | R Documentation |
Get the limits to set for the subject profile plots, depending on the alignment policy set.
Description
These limits are extracted from specified timeLim
for each
module (stored in the attributes()$metaData$timeLim
),
and if empty for all modules: from the maximal range
of the x-coordinates across all plots.
Usage
getTimeLimSubjectProfilePlots(
listPlots,
timeAlign = "all",
timeAlignPerSubject = "none"
)
Arguments
listPlots |
list of list of |
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 |
Value
Time limits, as a numeric vector of length 2.
If time limits should be set by module, named list
with time limits by module.
If time limits should be set by module and subject, nested list
with time limits 1) by module 2) by subject.
The names of the list contains the module/subject name extracted
from the names of listPlots
.
The time limits are only returned if they will need to be explicitly set
for a plot. Otherwise, NULL is returned.
Author(s)
Laure Cougnaud