Learn R Programming

geoR (version 1.2-5)

hist.krige.bayes: Plots Sample from Posterior Distributions

Description

Plots histograms and/or density estimation with samples from the posterior distribution of the model parameters

Usage

## S3 method for class 'krige.bayes':
hist(x, pars, density.est = TRUE, histogram = TRUE, ...)

Arguments

x
an object of the class krige.bayes, with an output of the funtions krige.bayes.
pars
a vector with the names of one or more of the model parameters. Defaults to c("sigmasq", "phi", "tausq.rel").
density.est
logical indication whether a line with the density estimation should be added to the plot.
histogram
logical indicating whether the histogram is included in the plot.
...
further arguments for the plotting functions and or for the density estimation.

Value

  • Produces a plot in the currently graphics device. Returns a invisible list with the components:
  • histogramwith the output of the function hist for each parameter
  • density.estimationwith the output of the function density for each parameter

See Also

krige.bayes, hist, density.

Examples

Run this code
## See documentation for krige.bayes()

Run the code above in your browser using DataLab