plot.shrinkTVPVAR_fit {shrinkTVPVAR} | R Documentation |
plot.shrinkTVPVAR_fit
generates plots visualizing the posterior distribution of fitted values
of a model generated by a call to shrinkTVPVAR
.
## S3 method for class 'shrinkTVPVAR_fit'
plot(x, nplot = 3, h_borders = c(0.05, 0.05), w_borders = c(0.02, 0.02), ...)
x |
a |
nplot |
single integer value, determining the number of plots (i.e. number of equations to visualize at once) to be generated. The default value is 3. |
h_borders |
numeric vector of length 2, determining the horizontal borders of the plot.
The first value is the space between the plot and the left border,
the second value is the space between the plot and the right border.
Both are fractions of the total width of the plot. The default value is |
w_borders |
numeric vector of length 2, determining the vertical borders of the plot.
The first value is the space between the plot and the top border,
the second value is the space between the plot and the bottom border.
Both are fractions of the total height of the plot. The default value is |
... |
further arguments to be passed to |
Called for its side effects and returns invisibly.
Peter Knaus peter.knaus@wu.ac.at
Other plotting functions:
TV_heatmap()
,
density_plotter()
,
plot.mcmc.tvp.var()
,
plot.mcmc.var()
,
plot.shrinkTVPVAR()
,
plot.shrinkTVPVAR_forc()
,
state_plotter()
set.seed(123)
sim <- simTVPVAR(p = 2)
data <- sim$data
res <- shrinkTVPVAR(data, p = 2)
fit <- fitted(res)
plot(fit)