
Spaghetti plot for standard Campsis simulation output.
Source:R/spaghetti_plot.R
spaghetti_plot.std_campsis_tbl.RdPlots individual-level time profiles from a std_campsis_tbl (the
default output of simulate() when no custom outfun is used).
Usage
# S3 method for class 'std_campsis_tbl'
spaghetti_plot(x, variable = "CONC", colour = "auto", ...)Arguments
- x
a
std_campsis_tblobject- variable
name of the column to plot on the y-axis. Defaults to
"CONC". An informative error is raised when the column is absent.- colour
stratification for line colour. One of
"auto",NULL, or a character vector of column names. See Details.- ...
additional arguments (currently unused, reserved for future use)
Details
Colour stratification is resolved as follows:
"auto"(default):ARMis added when more than one distinct arm is detected in the data;SCENARIOis added when more than one distinct scenario is detected.NULL: no colour mapping.character vector: explicit column name(s) to colour by (forwarded directly to
spaghettiPlot).