corrplot.mixed {corrplot}R Documentation

Using mixed methods to visualize a correlation matrix.

Description

Using mixed methods to visualize a correlation matrix.

Usage

corrplot.mixed(corr, lower = "number", upper = "circle",
	tl.pos = c("d","lt","n"), diag = c("n","l","u"), 
	bg = "white", addgrid.col = "gray",...)

Arguments

corr

Matrix, the correlation matrix to visualize.

lower

Character, the visualization method for the lower triangular correlation matrix.

upper

Character, the visualization method for the upper triangular correlation matrix.

tl.pos

Character, "lt", "d" or "n", giving position of text labels, "lt" means left and top, "d" means diagonal. If "n", add no textlabel.

diag

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).

bg

The background color.

addgrid.col

The color of grid, if NULL, don't add grid.

...

Additional arguments for corrplot's wrappers

Author(s)

Taiyun Wei

Examples

M <- cor(mtcars)
ord <- corrMatOrder(M, order="AOE")
M2 <- M[ord,ord]
par(ask=TRUE)
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")


[Package corrplot version 0.73 Index]