formatTimeLim: Format specified 'timeLim'.

View source: R/miscellaneous.R

formatTimeLimR Documentation

Format specified timeLim.

Description

In case one of the limits if missing, the corresponding minimum/maximum across subjects is used.

Usage

formatTimeLim(
  data,
  subjectVar = "USUBJID",
  timeStartVar,
  timeEndVar,
  timeLim = NULL
)

Arguments

data

Data.frame with data.

subjectVar

String, variable of data with subject ID

timeStartVar

String, variable of data with start of time interval.

timeEndVar

String, variable of data with end of time interval.

timeLim

(optional) Vector of length 2 with time limits (x-axis). If not specified, these are extracted from the minimum timeStartVar and maximum timeEndVar per subject.
The time limits are stored as attributes of the plots, used to align the plots in the final report.

Value

Numeric vector of length 2 or list of such element for each subject.

Author(s)

Laure Cougnaud


patientProfilesVis documentation built on Nov. 18, 2022, 5:12 p.m.