Using mixed methods to visualize a correlation matrix.
Matrix, the correlation matrix to visualize.
Character, the visualization method for the lower triangular correlation matrix.
Character, the visualization method for the upper triangular correlation matrix.
Character, 'lt'
, 'd'
or 'n'
, giving
position of text labels, 'lt'
means left and top, 'd'
means
diagonal. If 'n'
, add no textlabel.
Character, for specifying the glyph on the principal diagonal. It
is one of 'n'
(default, draw nothing), 'l'
(draw the glyphs
of lower triangular) or 'u'
(draw the glyphs of upper triangular).
The background color.
See the addgrid.col
parameter in the function
corrplot
Passed as col
parameter to the lower matrix.
Passed as col
parameter to the upper matrix.
See the plotCI
parameter in the function
corrplot
See par
.
Additional arguments for corrplot's wrappers
M = cor(mtcars)
ord = corrMatOrder(M, order = 'AOE')
M2 = M[ord, ord]
corrplot.mixed(M2)
corrplot.mixed(M2, lower = 'ellipse', upper = 'circle')
corrplot.mixed(M2, lower = 'square', upper = 'circle')
corrplot.mixed(M2, lower = 'shade', upper = 'circle')
corrplot.mixed(M2, tl.pos = 'lt')
corrplot.mixed(M2, tl.pos = 'lt', diag = 'u')
corrplot.mixed(M2, tl.pos = 'lt', diag = 'l')
corrplot.mixed(M2, tl.pos = 'n')