Plots individual-level time profiles from a std_campsis_tbl (the
default output of simulate() when no custom outfun is used).
# S3 method for std_campsis_tbl
spaghetti_plot(x, variable = "CONC", colour = "auto", ...)a ggplot object
a std_campsis_tbl object
name of the column to plot on the y-axis. Defaults to
"CONC". An informative error is raised when the column is absent.
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)
Colour stratification is resolved as follows:
"auto" (default): ARM is added when more than one
distinct arm is detected in the data; SCENARIO is 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).
spaghettiPlot