R/patientProfilesVis-common-args-doc.R

#' Arguments used across the functions of the patientProfilesVis package.
#' @param data Data.frame with data.
#' @param colorVar String, variable of \code{data} with color.
#' @param colorLab String, label for \code{colorVar}.
#' @param colorPalette Named vector with color palette.
#' The variable should be named with the corresponding element
#' in \code{colorVar}.\cr
#' Colors can also be defined for the entire session, by setting
#' \code{options(patientProfilesVis.colors = X)} with X either:
#' \itemize{
#' \item{a vector with colors}
#' \item{a function returning a vector of colors for a specified number
#' of elements (\code{viridis} by default)}
#' }
#' @param shapeVar String, variable of \code{data} for shape of the points.
#' By default, same as \code{colorVar}.
#' @param shapeLab String, label for \code{shapeVar}.
#' Set by default to \code{colorLab} if \code{colorVar}
#' but not \code{shapeVar} is not specified.
#' @param shapePalette Named character vector with shape palette
#' for \code{shapeVar}.
#' The variable should be named with the corresponding element
#' in \code{shapeVar}.\cr
#' Shapes can also be defined for the entire session, by setting
#' \code{options(patientProfilesVis.shapes = X)} with X either:
#' \itemize{
#' \item{a vector with shapes}
#' \item{a function returning a vector of shapes for a specified number
#' of elements}
#' }
#' Note it is advised to specify the shapes as character,
#' e.g. 'cross' instead of \code{4}, in case Unicode
#' symbols should also be used.
#' @param paramGroupVar (optional) Character vector with variable(s) 
#' of \code{data} based on which the data will be grouped and sorted 
#' (in the y-axis) in the plot.
#' @param xLab String, label for the x-axis.
#' @param yLab String, label for the y-axis.
#' @param label String, label for the visualization.
#' This label is stored as attributes of the output
#' from the \code{subjectProfile[]Plot} function.\cr
#' This label is displayed in the final profile
#' report, in case no data is available for
#' for a specific patient, as: 'No [label] available.'
#' @param title String, title for the plot.
#' @param timeVar String, variable of \code{data} with time,
#' displayed in the x axis.\cr
#' Records with missing time are not displayed in the plot.
#' @param timeLab String, label for \code{timeVar}.
#' This is used in the message
#' indicating missing values for \code{timeVar},
#' and for the default label of the x-axis.
#' @param paramVar Character vector with variable(s) of \code{data} 
#' with parameters. Variable content is displayed in the y-axis.
#' @param paramLab Named character vector, 
#' with label for the parameter variable(s) (\code{paramVar}).\cr
#' This is used to set the default title.
#' @param timeLim (optional) Vector of length 2 with time limits (x-axis).
#' If not specified, these are extracted from the minimum \code{timeStartVar} 
#' and maximum \code{timeEndVar} per subject.\cr
#' The time limits are stored as attributes of the plots,
#' used to align the plots in the final report.
#' @param timeTrans transformation for the time variable, 
#' (see \code{trans} parameter in \code{\link[ggplot2]{scale_x_continuous}}, and
#' \code{\link[scales]{trans_new}}).
#' For example, produced by the \code{\link{getTimeTrans}} function.
#' @param timeExpand Vector of range expansion constants for the time axis
#' (see \code{expand} parameter in \code{\link[ggplot2]{scale_x_continuous}}).
#' @param listPlots Named list of subject profiles.
#' Each sublist contains subject profiles as returned
#' by the \code{subjectProfile[X]Plot} function, 
#' so nested by subject and page.
#' The names of the list should be unique, and
#' are used 
#' @param alpha Numeric with transparency, 1 by default.
#' @param labelVars Named character vector with variable labels 
#' (names are the variable code)
#' @param subjectVar String, variable of \code{data} with subject ID
#' @param formatReport list with parameters used to specify the format of the report,
#' e.g. output of the \code{\link{subjectProfileReportFormat}} function
#' @param paramVarSep string with character(s) used to concatenate multiple 
#' \code{paramVar}, ' - ' by default.
#' @name patientProfilesVis-common-args
#' @return No return value, used for the documentation of 
#' the functions of the package.
NULL

Try the patientProfilesVis package in your browser

Any scripts or data that you put into this service are public.

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