cellMap | R Documentation |
This function draws a cellmap, possibly of a subset of rows and columns of the data, and possibly combining cells into blocks. A cellmap shows which cells are missing and which ones are outlying, marking them in red for unusually large cell values and in blue for unusually low cell values. When cells are combined into blocks, the final color is the average of the colors in the individual cells.
cellMap(R, indcells = NULL, indrows = NULL, outrows = NULL,
showcellvalues = NULL, D = NULL, rowlabels = NULL,
columnlabels = NULL, mTitle = "cell map",
rowtitle = "cases", columntitle = "variables",
showrows = NULL, showcolumns = NULL,
nrowsinblock = NULL, ncolumnsinblock = NULL,
manualrowblocksizes = NULL,
manualcolumnblocksizes = NULL,
rowblocklabels = NULL, columnblocklabels = NULL,
sizemain = 1.5, sizetitles = 1.2, sizerowlabels = 1,
sizecolumnlabels = 1, sizecellvalues = 1,
adjustrowlabels = 1, adjustcolumnlabels = 1,
columnangle = 90, colContrast = 1,
outlyingGrad = TRUE,
darkestColor = sqrt(qchisq(0.999, 1)),
drawCircles = FALSE, showVals = NULL, autolabel = TRUE)
R |
Matrix of standardized residuals of the cells (required input argument). After running |
indcells |
Indices of flagged cells. Defaults to |
indrows |
Indices of outlying rows (if available). If not |
outrows |
Outlyingness of each row (if available). If not |
showcellvalues |
Takes the values |
D |
A matrix of data values, of the same dimensions as |
rowlabels |
Labels of the rows of the matrix |
columnlabels |
Labels of the columns of the matrix |
mTitle |
Main title of the cellMap. Defaults to "cell map". |
rowtitle |
Title for the rows. Defaults to "cases". |
columntitle |
Title for the columns. Defaults to "variables". |
showrows |
Indices of the rows to be shown. Defaults to |
showcolumns |
Indices of the columns to be shown. Defaults to |
nrowsinblock |
How many rows are combined in a block. Defaults to |
ncolumnsinblock |
Defaults to |
manualrowblocksizes |
This allows the user to specify their own row blocks, unlike the argument nrowsinblock which makes all row blocks the same length. The argument takes the form |
manualcolumnblocksizes |
Analogous to manualrowblocksizes but for columns. It is allowed for one of them to be |
rowblocklabels |
This allows the user to specify labels for the row blocks, whether obtained from |
columnblocklabels |
Analogous to |
sizemain |
Size of main title. Defaults to |
sizetitles |
Size of row title and column title. Defaults to |
sizerowlabels |
Size of row labels. Defaults to |
sizecolumnlabels |
Size of column labels. Defaults to |
sizecellvalues |
Size of values in the cells, when showcellvalues = TRUE. Defaults to |
adjustrowlabels |
Adjust row labels: 0=left, 0.5=centered, 1=right. Defaults to |
adjustcolumnlabels |
Adjust column labels: 0=left, 0.5=centered, 1=right. Defaults to |
columnangle |
Angle of the column labels. Defaults to |
colContrast |
Parameter regulating the contrast of colors, should be in |
outlyingGrad |
If |
darkestColor |
Standardized residuals whose absolute value is bigger than this will get the darkest color. |
drawCircles |
Whether or not to draw circles indicating outlyingness of rows. When both |
showVals |
old name of argument |
autolabel |
obsoleted by the current machanism for creating blocks of cells. Is only in the list for backward compatibility. |
Rousseeuw P.J., Van den Bossche W.
Rousseeuw, P.J., Van den Bossche W. (2018). Detecting Deviating Data Cells. Technometrics, 60(2), 135-145. (link to open access pdf)
DDC
# For examples of the cellmap, we refer to the vignette:
## Not run:
vignette("DDC_examples")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.