Description Usage Arguments Details Value Author(s) References See Also
PLOTR
is a function to generate diagnostic plots and/or covariate
evaluation plots following a successful NONMEM run. It is called by
NONR
if diagnostic plots are requested or can be called independently
following a NONMEM run. Plots use the pdf
device. Specific control stream
syntax is required: see Note under NONR
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | PLOTR(
run,
...,
project=getwd(),
rundir=filename(project,run),
grp = NULL,
onefile=TRUE,
plotfile=plotfilename(run,project,grp,onefile),
logtrans = FALSE,
dvname = 'DV',
epilog=NULL,
grpnames = NULL,
cont.cov = NULL,
cat.cov = NULL,
par.list = NULL,
eta.list = NULL,
missing = -99,
estimated = NULL,
superset = FALSE
)
|
run |
a control stream name, typically integer |
project |
the directory containing run subdirectories |
rundir |
path for the NONMEM run directory (‘project/*’); passed to |
grp |
item in NONMEM data file or output table file (default) that can be used to condition
plots generated by |
onefile |
whether to produce one output file or many; passed to |
plotfile |
file name for diagnostic plots, if any. Default combines
‘DiagnosticPlotReview’ with the run number, and |
logtrans |
Whether to transform the NONMEM output variables |
dvname |
name of the dependent variable to use as a label for the diagnostic plots; default: |
epilog |
User-defined function or script to call at end of |
grpnames |
optional vector of names for
|
cont.cov |
vector of
continuous covariate names. Names must match those used as column
headers in the data file (identified in the control stream).
Values are retrieved from the data file if not part of the NONMEM $TABLE step. Default
value is |
cat.cov |
vector of categorical covariate names. Names must match
those used as column headers in |
par.list |
vector of NONMEM model
parameter names. Values are retrieved from ‘*par.TAB’ created in
NONMEM if not in ‘*.TAB’. Default value is |
eta.list |
vector of NONMEM
model random effect names. Values are retrieved from ‘*par.TAB’ created
in NONMEM if not in ‘*.TAB’. Default value is |
missing |
numeric item that defines value used to represent missing items in the NONMEM data file. Default value is '-99'. |
estimated |
character vector of names for items that NONMEM estimates. Used to annotate parameter and gradient search plots. |
superset |
(experimental) whether to use |
... |
additional arguments passed to functions that accept them. For example,
you can pass |
PLOTR creates a plotting dataset using dataSynthesis
. It passes this dataset
to each of diagnosticPlots
, covariatePlots
, and cwresPlots
. It then
calls the function named by the epilog
argument, if any. The example epilog
(‘example/epilog.R’) calls dataSynthesis
itself, and does additional plotting.
The ... argument can be used creatively, with appropriate caution.
Extra arguments are generally passed to secondary functions that accept them,
and even some that don't. All the lattice plotting functions accept extra
arguments, so you may be able to modify the diagnostic plots judiciously
(with the caviat that the same arguments will be passed to diagnosticPlots
,
covariatePlots
, and cwresPlots
. pdf
technically does not accept extra
arguments, but any specified argument that it does accept will be passed.
File names deserve special consideration. plotfile
gives
the name (or naming strategy) for the diagnostic plots; it is passed to pdf
and has a suitable default. If an alternative is specified, ‘*’ will be
replaced with run
, the run name.
For example, the default ‘pdf’ name is ‘project/DiagnosticPlotReview_*.pdf’,
but you could change it to ‘project/*/DiagnosticPlotReview.pdf’.
data.frame (the plotting data set), returned invisibly
Tim Bergsma
http://metrumrg.googlecode.com
NONR
dataSynthesis
diagnosticPlots
covariatePlots
cwresPlots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.