Learn R Programming

abc (version 2.0)

plot.cv4abc: 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
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.
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 furth
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 extrac
...
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

Run this code
## see ?cv4abc for examples

Run the code above in your browser using DataLab