Plots a median line with a prediction interval ribbon from a
std_campsis_tbl (the default output of simulate() when no
custom outfun is used).
# S3 method for std_campsis_tbl
shaded_plot(
x,
variable = "CONC",
colour = "auto",
strat_extra = NULL,
level = 0.9,
alpha = 0.25,
...
)a ggplot object
a std_campsis_tbl object
name of the column to summarise on the y-axis. Defaults to
"CONC". An informative error is raised when the column is absent.
stratification for line and ribbon colour. One of
"auto", NULL, or a character vector of column names.
See Details.
additional column name(s) used for stratification in the
prediction interval computation but not mapped to colour — useful
when combined with facet_wrap(). Forwarded to
shadedPlot. Default is NULL.
prediction interval level. Default is 0.90 (90% PI).
transparency of the ribbon. Default is 0.25.
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/fill by
(forwarded directly to shadedPlot).
shadedPlot