elaborator_plot_quant_trends: Generates boxplots for each treatment group and laboratory...

Description Usage Arguments Value

View source: R/elaborator_plot_quant_trends.R

Description

Generate boxplots showing the distribution of laboratory values at each visits of a study separately by treatment group and laboratory parameter according to the quantitative trend analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
elaborator_plot_quant_trends(
  dat1,
  signtest = TRUE,
  Visit1,
  Visit2,
  sameaxes = FALSE,
  ats = NULL,
  cols = NULL,
  labelvis = NULL,
  labcolumn,
  sortpoints = FALSE,
  pcutoff = 0.01,
  cexoutliers = 0.7,
  infotest = NULL,
  sortinput = as.character(unique(dat1[, labcolumn])),
  bordercol = NULL,
  add_points = TRUE,
  connect_lines = FALSE
)

Arguments

dat1

data set

signtest

logical, if true sign test, otherwise t-test for comparing Visit1 and Visit2 is performed

Visit1

name of visit time point one

Visit2

name of visit time point two, or vector of visit names for pairwise comparison to Visit1

sameaxes

logical indicating if boxplot should have the same y-axis range for all treatment groups within a laboratory parameter

ats

numeric vector giving the locations where the boxplots should be drawn; defaults to 1:n where n is the number of boxplots.

cols

vector with colors of boxplots

labelvis

vector of visit names used for labelling

labcolumn

column name of dat1 which includes the laboratory parameter names

sortpoints

logical indicating if dots in boxplots should be sorted from smallest to largest

pcutoff

numeric for p-value threshold; if p-value of specified test is below this threshold, the background of the respective plot is colorized.

cexoutliers

size of the outliers

infotest

list object from the perform test function

sortinput

vector of laboratory parameter names in the order in which laboratory parameters are presented in the output

bordercol

color of boxes which are not selected for hypothesis testing

add_points

logical indicating if points showing patients' values should be added to the boxplots

connect_lines

logical indicating if subject values should be connected between visits via lines

Value

No return value. Generates plots for the quantitative trends analysis.


elaborator documentation built on Feb. 23, 2021, 1:06 a.m.