prepareSubjectProfile: prepare list of subject profile (s) to be combined with the...

View source: R/report_subjectProfileCombine.R

prepareSubjectProfileR Documentation

prepare list of subject profile (s) to be combined with the combineVerticallyGGplot

Description

prepare list of subject profile (s) to be combined with the combineVerticallyGGplot

Usage

prepareSubjectProfile(
  ...,
  labels,
  timeLim = NULL,
  refLines = NULL,
  refLinesData = NULL,
  refLinesTimeVar = NULL,
  refLinesLabelVar = NULL,
  subjectVar = "USUBJID",
  timeTrans = NULL,
  timeExpand = NULL
)

Arguments

...

list of subject profiles (across modules)

labels

string with labels for the plots

timeLim

time limits, as returned by the getTimeLimSubjectProfilePlots function.

refLines

(optional) nested list with details for reference line(s). Each sublist contains:

  • (required) 'label': string with label for the reference line

  • (required) 'time': unique time (x) coordinate for the reference line

  • (optional) 'color': color for the reference line, 'black' by default

  • (optional) 'linetype': linetype for the reference line, 'dotted' by default

refLinesData

data.frame with data from which the reference line(s) should be extracted

refLinesTimeVar

string, variable of refLinesData with time for reference line(s)

refLinesLabelVar

string, variable of refLinesData with label for reference line(s)

subjectVar

String, variable of data with subject ID

timeTrans

Time transformation, or list of such transformation named by module. If NULL, no transformation are done.

timeExpand

Vector of range expansion constants for the time axis (see expand parameter in scale_x_continuous).

Value

subjectProfilePlot object, containing the combined profile plots

Author(s)

Laure Cougnaud


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