Usage
ctStanDiscreteParsPlot(x, indices = "all", add = FALSE, legend = TRUE, polygon = TRUE, quantiles = c(0.05, 0.5, 0.95), times = seq(0, 10, 0.1), latentNames = "auto", ylim = "auto", lwdvec = "auto", colvec = "auto", ltyvec = "auto", plotcontrol = list(ylab = "Value", xlab = "Time interval", main = "Regression coefficients", type = "l"), legendcontrol = list(x = "topright", bg = "white"), polygonalpha = 0.1, polygoncontrol = list(border = NA))
Arguments
indices
Either a string specifying type of plot to create, or an n by 2
matrix specifying which indices of the output matrix to plot.
'AR' specifies all diagonals, for discrete time autoregression parameters.
'CR' specifies all off-diagonals,for discrete time cross regression parameters.
'all' plots all AR and CR effects at once.
add
Logical. If FALSE, a new plot is generated, if TRUE, specified plot/s are
overlayed on existing plot.
legend
Logical. If TRUE, generates a legend.
polygon
Logical. If TRUE, fills a polygon between the first and last specified quantiles.
quantiles
numeric vector of length 3, with values between 0 and 1, specifying which quantiles to plot.
The default of c(.05,.5,.95) plots 95% credible intervals and the posterior median at 50%.
times
Numeric vector of positive values, discrete time parameters will be calculated for each.
latentNames
Vector of character strings denoting names for the latent variables.
'auto' just uses eta1 eta2 etc.
ylim
Either 'auto' to determine automatically, or vector of length 2 specifying
upper and lower limits of y axis.
lwdvec
Either 'auto', or a vector of positive integers denoting line widths for each quantile.
'auto' specifies c(1,3,1) if there are 3 quantiles to be plotted (default), otherwise simply 3.
colvec
Either 'auto', or a vector of color values denoting colors for each index to be plotted.
'auto' generates colors using the rainbow
function. ltyvec
Either 'auto', or a vector of line type integers (as for the lty parameter normally)
denoting line types for each quantile.
'auto' specifies c(3, 1, 3) if there are 3 quantiles to be plotted (default), otherwise simply 1.
plotcontrol
list of arguments to pass to plot function.
The following arguments are ignored: ylim,lwd,lty,col,x,y.
legendcontrol
list of arguments to pass to legend function. 'legend=' and 'text.col=' arguments
will be ignored.
polygonalpha
Numeric between 0 and 1 to multiply the alpha (transparency) of colvec by for
the fill polygon.
polygoncontrol
list of arguments to pass to polgyon function (if polygon=TRUE).
x,y, and col arguments will be ignored.