Will show predicted concentrations in compartments associated with an infusion schedule.
User can provide a series of effect-site concentrations and a PD model or an infusion schedule with a PK-PD model.
Plot output returned by "bayes_control" function.
# S3 method for pkmod
plot(
x,
...,
inf,
npts = 1000,
title = NULL,
xlab = "Time",
ylab = "Concentration"
)# S3 method for pdmod
plot(
x,
...,
pkmod,
inf,
pars_pd,
pars_pk = NULL,
npts = 1000,
plot_pk = TRUE,
title = NULL,
ecmpt = NULL,
xlab = "Time",
ylab_con = "Concentration",
ylab_resp = "Response"
)
# S3 method for tciinf
plot(
x,
...,
title = NULL,
display = TRUE,
xlab = "Time",
ylab_con = "Concentration",
ylab_resp = "Response"
)
# S3 method for datasim
plot(
x,
...,
pars_prior = NULL,
pars_post = NULL,
pk_ix = NULL,
pd_ix = NULL,
xlab = "Time",
ylab_con = "Concentration",
ylab_resp = "Response"
)
# S3 method for bayessim
plot(x, ..., xlab = "Time", ylab_con = "Concentration", ylab_resp = "Response")
ggplot object displaying predicted concentrations for a pkmod object.
ggplot object arranged with gridExtra::grid.arrange displaying predicted response for a pdmod object.
gtable object using gridExtra::arrangeGrob
ggplot object displaying simulated data
ggplot object displaying simulated data.
Object returned from "bayes_control" function
...
An infusion schedule object with columns "begin","end","infrt".
Number of points used to evaluate predicted concentrations.
Title of plot.
x-axis label
y-axis label
PK model
Parameters used by pdmod.
Parameters used by pkmod.
Logical. Should PK concentrations be plotted alongside the PD response. Defaults to TRUE.
Effect-site compartment number. Defaults to the last compartment concentration returned by pkmod.
y-axis label for concentration-time plot
y-axis label for response-time plot
Logical. Should plots be printed or returned as an arrangeGrob object?
Named vector of prior PK or PK-PD parameters
Named vector of posterior PK or PK-PD parameters
Indicies of parameter vector(s) corresponding to PK parameters
Indicies of parameter vector(s) corresponding to PD parameters