plot.XDNUTS {XDNUTS}R Documentation

Function to view the draws from the posterior distribution.

Description

Function to view the draws from the posterior distribution.

Usage

## S3 method for class 'XDNUTS'
plot(
  x,
  type = 1,
  which = NULL,
  warm_up = FALSE,
  cex.titles = 1,
  cex.legend = 1,
  plot.new = FALSE,
  which_chains = NULL,
  colors = NULL,
  ...
)

Arguments

x

an object of class XDNUTS.

type

the type of plot to display.

type = 1

marginal chains, one for each desired dimension.

type = 2

bivariate plot.

type = 3

time series plot of the energy level sets. Good for a quick diagnostic of big models.

type = 4

stickplot of the step-length of each iteration.

type = 5

Histograms of the centered marginal energy in gray and of the first differences of energy in red.

type = 6

Autoregressive function plot of the parameters.

type = 7

Matplot of the empirical acceptance rate and refraction rates.

which

either a numerical vector indicating the index of the parameters of interest or a string

which = 'continuous'

for plotting the first d-k parameters.

which = 'discontinuous'

for plotting the last k parameters.

where both d and k are elements contained in the output of the xdnuts function.

warm_up

a boolean value indicating whether the plot should be made using the warm-up samples.

cex.titles

a numerical value for regulating the size of the plot's titles, default value is 1.

cex.legend

a numerical value for regulating the size of the plot's legend, default value is 1.

plot.new

a boolean value indicating whether a new graphical window should be opened. This is advised if the parameters space is big.

which_chains

a numerical vector indicating the index of the chains of interest.

colors

a numerical vector of the same length as which_chains containing the colors for each chain.

...

additional arguments to customize plots.

Value

No return value.


[Package XDNUTS version 1.2 Index]