Learn R Programming

nonmem2R (version 0.2.5)

get.GOF.dictionary: Get, set, and modify the global (or local) GOF parameters and GOF dictionary for labels

Description

The current global GOF parameters and dictionary is automatically applied to every plot you draw. Use `get.GOF.params` to get the current GOF parameters, and `set.GOF.params` to change one or several parameters. To change settings for one GOF only you can use GOF.control as input to the GOF function. See details below for complete list of GOF parameters.

Similarly use `get.GOF.dictionary` and `set.GOF.dictionary` for the dictionary of labels. `set.GOF.dictionary` also allows for adding new items to the dictionary.

Use `set.ETA.labels` to set labels for ETA's in all plots

Usage

get.GOF.dictionary()

set.GOF.dictionary(...)

default.GOF.dictionary()

set.GOF.params(...)

get.GOF.params()

default.GOF.params()

set.ETA.labels(labels)

set.script.name(script.name)

GOF.control(...)

Arguments

...

named list of GOF parameter or GOF dictionary for labels

labels

vector of character strings with the labels

script.name

character strings for script name to put at end of caption

Details

Table below describe each of the global GOF parameters that can be modified by `set.GOF.params`

ParameterDefaultDescription
col.data"gray20"color for points in all GOFs
cex.data1.5cex for points in all GOFs
pch.data19pch for points in all GOFs
alpha.data0.5alpha for points in all GOFs
col.smooth"#3366FF"color for smoothers
lty.smooth1lty for smoothers
lwd.smooth1lwd for smoothers
se.smoothTRUEshow confidence interval for loess smoother (TRUE) or not (FALSE)
span.smooth0.6666667span parameter for loess smothers
degree.smooth1degree parameter for loess smothers
family.smooth"symmetric"family parameter for loess smothers
col.refline"red"color for reference lines in all GOFs
lty.refline2lty for reference lines in all GOFs
lwd.refline1lwd for reference lines in all GOFs
fill.hist"gray30"color for filling of histograms
col.hist"transparent"color for border of histograms
alpha.hist0.5alpha for fill area in histograms
fill.box"steelblue"color for filling of box-plots
col.box"black"color for border and whisker of box-plots
alpha.box0.6alpha for fill area in box-plots
axis.labelsTRUEuse dictionary for labels (TRUE) or just use column names for axis labels (FALSE)
add.captionTRUEadd caption to GOF plots (true) or not (FALSE)
size.caption8size for caption text
col.caption1color for caption text
caption.path.depth99number of folders levels to include in caption
corr.fontface4font face for correlation in eta.pairs.GOF
eta.labelsNULLvector of labels for ETA's
script.name""script name for caption

Examples

Run this code
### Example setting ETA labels
set.ETA.labels(c("Ka","CL","V"))
### Example setting script name
set.script.name("MyScript.R")

Run the code above in your browser using DataLab