plot.spateMCMC {spate} | R Documentation |
Plot fitted spateMCMC objects.
Description
Plots trace plots, pair plots, the posterior of the hyperparameters and the posterior of the latent spatio-temporal process.
Usage
## S3 method for class 'spateMCMC'
plot(x,..., trace = TRUE, hist = TRUE,
medianHist=TRUE, pairs = FALSE,ask = TRUE, ToFile = FALSE,
path = NULL,file = NULL,true=NULL,BurnInAdaptive=NULL,
postProcess = FALSE)
Arguments
x |
A 'spateMCMC' object obtained from 'spate.mcmc'. |
... |
Arguments to be passed to 'spate.plot' in case 'postProcess=TRUE' is selected. |
trace |
logical; if 'TRUE' trace plots are made |
hist |
logical; if 'TRUE' histograms of the posterior distributions for the hyper-parameters are plotted |
medianHist |
logical; if 'TRUE' medians are added to the histograms. |
pairs |
logical; if 'TRUE' trace plots are made |
ask |
logical; if 'TRUE' (and the R session is interactive) the user is asked for input, before a new figure is drawn. |
ToFile |
logical; if 'TRUE' the plots are save to a file. |
path |
The path. |
file |
The file name. |
true |
The true value of the parameters (for simulation only). |
BurnInAdaptive |
The number of samples used as burn-in before starting the adaptive estimation of Metropolis-Hastings proposal covariance for the hyper-parameters. |
postProcess |
logical; if 'TRUE' the posterior of the spatio-temporal process xi is plotted as well. |
Value
Plots illustrating a fitted model saved in a 'spateMCMC' object.
Author(s)
Fabio Sigrist
Examples
data("spateMCMC")
plot(spateMCMC,medianHist=TRUE,pairs=TRUE)