Plotting method for cross-validation ABC objects. Helps to visually evaluate the quality of the estimation and/or the effect of the tolerance level.
# S3 method for cv4abc
plot(x, exclude = NULL, log = NULL, file = NULL,
postscript = FALSE, onefile = TRUE, ask =
!is.null(deviceIsInteractive()), caption = NULL, ...)
an object of class "cv4abc"
.
a vector of row indices indicating which rows should be excluded from plotting. Useful when the prior distribution has a long tail.
character vector of the same length as the number of parameters in
the "cv4abc"
object. Allows plotting on a log scale. Possible
values are "" (normal scale) and "xy" (log scale for both the x and
y axis). "x" and "y" are possible as well, but not of any interest
here. Negative values are set to NA
and there is a warning.
a character string giving the name of the file. See
postscript
for details on accepted file names. If
NULL
(the default) plots are printed to the null device
(e.g. X11
). If not NULL
plots are printed on a
pdf
device. See also postscript
.
logical; if FALSE
(default) plots are
printed on a pdf
device, if TRUE
on a
postscript
device.
logical, if TRUE
(the default) allow multiple
figures in one file. If FALSE
, generate a file name
containing the page number for each page. See
postscript
for further details.
logical; if TRUE
(the default), the user is asked
before each plot, see par(ask=.)
.
captions to appear above the plot(s); character
vector of valid graphics annotations, see
as.graphicsAnnot
. By default, parnames
from
x
are extracted (see abc
). Can be set to
""
or NA
to suppress all captions.
other parameters passed to plot
.
Different tolerance levels are plotted with heat.colors
.
Thus, the colors correspond to different levels of the tolerance rate
in an increasing order from red to yellow.
cv4abc
, abc