Learn R Programming

abc (version 2.2.2)

hist.abc: Posterior histograms

Description

Histograms of posterior samples from objects of class "abc".

Usage

# S3 method for abc
hist(x, unadj = FALSE, true = NULL, file = NULL,
postscript = FALSE, onefile = TRUE, ask =
!is.null(deviceIsInteractive()), col.hist = "grey", col.true = "red",
caption = NULL, ...)

Value

A list of length equal to the number of parameters, the elements of which are objects of class "histogram". See hist

for details.

Arguments

x

an object of class "abc".

unadj

logical, if TRUE the unadjusted values are plotted even if method is "loclinear" or "neuralnet".

true

the true parameter value(s), if known. Vertical bar(s) are drawn at the true value(s). If more than one parameters were estimated, a vector of the true values have to be supplied.

file

a character string giving the name of the file. See postscript for details on accepted file names. If NULL (the default) histograms are printed to the null device (e.g. X11). If not NULL histograms are printed on a pdf device. See also postscript.

postscript

logical; if FALSE (default) histograms 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=.).

col.hist

the colour of the histograms.

col.true

the colour of the vertical bar at the true value.

caption

captions to appear above the histogram(s); character vector of valid graphics annotations, see as.graphicsAnnot for details. When NULL (default), parnames are used, which are extracted from x (see abc). Can be set to NA to suppress all captions.

...

other parameters passed to hist.

See Also

abc, plot.abc

Examples

Run this code
## see ?abc for examples 

Run the code above in your browser using DataLab