This is largely now a legacy plotting function, with a variety of options. It has been superseded by plot.PM_valid.
Usage
# S3 method for PMvalid
plot(
x,
type = "vpc",
tad = FALSE,
icen = "median",
outeq = 1,
lower = 0.025,
upper = 0.975,
log = FALSE,
pch.obs = 1,
col.obs = "black",
cex.obs = 1,
data_theme = "color",
plot_theme = theme_grey(),
col.obs.ci = "blue",
col.obs.med = "red",
col.sim.ci = "dodgerblue",
col.sim.med = "lightpink",
axis.x = NULL,
axis.y = NULL,
...
)
Arguments
- x
The name of an PMvalid data object generated by
make_valid
.- type
Default is “vpc” for a visual prective check, but could be “pcvpc” for a prediction-corrected visual predictive check.
- tad
Plot using time after dose if
TRUE
. Default isFALSE
which plots using standard relative time. This will be the only option iftad
was not set toTRUE
when making the PMvalid object.- icen
Can be either “median” for the predictions based on medians of the population parameter value distributions, or “mean”. Default is “median”.
- outeq
The number of the output equation to simulate/test. Default is 1.
- lower
The lower quantile displayed for the observed and simulated profiles. Default is 0.025.
- upper
The upper quantile displayed for the observed and simulated profiles. Default is 0.975.
- log
Boolean operator to plot in semilog space. The default is
FALSE
.- pch.obs
Control the plotting character used for observations. Default is 1, i.e. an open circle. See
points
for other values ofpch
.- col.obs
Color for observations. Default is black.
- cex.obs
Size for observatins. Default is 1.
- data_theme
Default is “color”, but could be “grey” or “gray”.
- plot_theme
Default is
theme_grey()
but could be any complete ggplot2 theme, e.g.ggplot2::theme_minimal()
.- col.obs.ci
Color of the observation confidence interval (set by
lower
andupper
). Default is blue.- col.obs.med
Color of the observation median. Default is red.
- col.sim.ci
Color of the simulation confidence interval (set by
lower
andupper
). Default is dodgerblue.- col.sim.med
Color of the simulation median. Default is lightpink.
- axis.x
List of
$name
and$limits
. Default name is “Time”.- axis.y
List of
$name
and$limits
. Default name is “Observation”.- ...
Not currently used
See also
make_valid
, plot
, par
, points