Plots trace plots, pair plots, the posterior of the hyperparameters and the posterior of the latent spatio-temporal process.
# S3 method for 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)
Plots illustrating a fitted model saved in a 'spateMCMC' object.
A 'spateMCMC' object obtained from 'spate.mcmc'.
Arguments to be passed to 'spate.plot' in case 'postProcess=TRUE' is selected.
logical; if 'TRUE' trace plots are made
logical; if 'TRUE' histograms of the posterior distributions for the hyper-parameters are plotted
logical; if 'TRUE' medians are added to the histograms.
logical; if 'TRUE' trace plots are made
logical; if 'TRUE' (and the R session is interactive) the user is asked for input, before a new figure is drawn.
logical; if 'TRUE' the plots are save to a file.
The path.
The file name.
The true value of the parameters (for simulation only).
The number of samples used as burn-in before starting the adaptive estimation of Metropolis-Hastings proposal covariance for the hyper-parameters.
logical; if 'TRUE' the posterior of the spatio-temporal process xi is plotted as well.
Fabio Sigrist
data("spateMCMC")
plot(spateMCMC,medianHist=TRUE,pairs=TRUE)
Run the code above in your browser using DataLab