batchTimeViz: Visualize Batches Over Time

View source: R/batchTimeViz.R

batchTimeVizR Documentation

Visualize Batches Over Time

Description

batchTimeViz is a simple function that will visualize batches over time for multi-batch longitudinal data. Data should be in "long" format.

Usage

batchTimeViz(
  batchvar,
  timevar,
  data,
  xlabel = "time",
  ylabel = "batch",
  title = "",
  verbose = TRUE,
  ...
)

Arguments

batchvar

character string that specifies name of the batch variable. Batch variable should be a factor.

timevar

character string that specifies name of numeric variable that distinguishes within-subject repeated measures, e.g., time, age, or visit. Will be plotted along x-axis.

data

name of the data frame that contains the variables above. Rows are different observations (subject/timepoints), columns are different variables.

xlabel

x-axis label (character string). Default is 'time'.

ylabel

y-axis label (character string). Default is 'batch'.

title

main title for the plot (character string). Default is no title.

verbose

prints messages. Logical TRUE or FALSE. Default is TRUE.

...

other graphical parameter arguments passed to par.

Value

Creates a plot.


jcbeer/longCombat documentation built on June 26, 2022, 6:47 p.m.