View source: R/spaghetti_plot.R
| spaghetti_plot.std_campsis_tbl | R Documentation |
Plots individual-level time profiles from a std_campsis_tbl (the
default output of simulate() when no custom outfun is used).
## S3 method for class 'std_campsis_tbl'
spaghetti_plot(x, variable = "CONC", colour = "auto", ...)
x |
a |
variable |
name of the column to plot on the y-axis. Defaults to
|
colour |
stratification for line colour. One of |
... |
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).
a ggplot object
spaghettiPlot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.