plot.cv4abc {abc}R Documentation

Cross-validation plots for ABC

Description

Plotting method for cross-validation ABC objects. Helps to visually evaluate the quality of the estimation and/or the effect of the tolerance level.

Usage

## S3 method for class 'cv4abc'
plot(x, exclude = NULL, log = NULL, file = NULL,
postscript = FALSE, onefile = TRUE, ask =
!is.null(deviceIsInteractive()), caption = NULL, ...)

Arguments

x

an object of class "cv4abc".

exclude

a vector of row indices indicating which rows should be excluded from plotting. Useful when the prior distribution has a long tail.

log

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.

file

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.

postscript

logical; if FALSE (default) plots are printed on a pdf device, if TRUE on a postscript device.

onefile

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.

ask

logical; if TRUE (the default), the user is asked before each plot, see par(ask=.).

caption

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.

Details

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.

See Also

cv4abc, abc

Examples

## see ?cv4abc for examples

[Package abc version 2.1 Index]