batchTimeViz | R Documentation |
batchTimeViz
is a simple function that will visualize batches over time for multi-batch longitudinal data. Data should be in "long" format.
batchTimeViz( batchvar, timevar, data, xlabel = "time", ylabel = "batch", title = "", verbose = TRUE, ... )
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 |
ylabel |
y-axis label (character string). Default is |
title |
main title for the plot (character string). Default is no title. |
verbose |
prints messages. Logical |
... |
other graphical parameter arguments passed to |
Creates a plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.