latexCorMat {CMO}R Documentation

Correlation Matrix for LaTeX

Description

Print out a correlation matrix in Sweave/LaTeX format.

Usage

latexCorMat(datamatrix, ndigits = 3, killLowerDiag = FALSE, noLeadZero = TRUE)

Arguments

datamatrix Input data matrix
ndigits Integer indicating the precision to be used
killLowerDiag if TRUE the lower (redundant) half of the matrix gets blanked out
noLeadZero Boolean indicating if leading zeros are to be printed

Value

returns a correlation matrix in LaTeX style

Author(s)

Christian Montel

Examples

#get some data matrix
mat <- matrix(c(1:16)/100,nrow=4)
latexCorMat(mat)

[Package CMO version 1.02 Index]