The plotMatrix
function produces one of two styles of plots,
depending on the circle
argument. A \(K \times K\)
numeric matrix of \(K\) parameters or variables is plotted. The plot
is a matrix of the same dimensions, in which each element is colored
(and sized, when circle=TRUE
) according to its value.
Although plotMatrix
does not provide the same detail as a
numeric matrix, it is easier to discover elements of interest
according to color (and size when circle=TRUE
).
The plotMatrix
function is not inherently Bayesian, and does
not include uncertainty in matrices. Nonetheless, it is included
because it is a useful graphical presentation of a numeric matrices,
and is recommended to be used with the posterior correlation matrix in
an object of class posteriorchecks
.
When x
is an object of class bayesfactor
, matrix
B
is plotted. When x
is an object of class
demonoid
(if it is a matrix), iterquad
, laplace
,
pmc
, or vb
, the covariance matrix Covar
is
plotted. When x
is an object of class posteriorchecks
,
the posterior correlation matrix is plotted.
This is a modified version of the circle.corr
function
of Taiyun Wei.