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(D, R, indcells = NULL, indrows = NULL,
standOD=NULL,showVals=NULL,rowlabels="",
columnlabels="",mTitle="", rowtitle="",
columntitle="",showrows=NULL, showcolumns=NULL,
nrowsinblock=1, ncolumnsinblock=1,autolabel=TRUE,
columnangle=90,sizetitles=1.1,adjustrowlabels=1,
adjustcolumnlabels=1, colContrast=1,outlyingGrad=TRUE,
darkestColor = sqrt(qchisq(0.999,1)),
drawCircles = TRUE)
The data matrix (required input argument).
Matrix of standardized residuals of the cells (required input argument)
Indices of outlying cells. Defaults to NULL
, which indicates the cells for which
\(|\code{R}| > \sqrt(qchisq(0.99,1))\).
Indices of outlying rows. By default no rows are indicated.
Standardized Orthogonal Distance of each row. Defaults to NULL
, then no rows
are indicated.
Takes the values "D"
, "R"
or NULL
and determines whether or not to show the entries of the data matrix (D) or the residuals (R) in the cellmap. Defaults to NULL
, then no values are shown.
Labels of the rows.
Labels of the columns.
Main title of the cellMap.
Title for the rows.
Title for the columns.
Indices of the rows to be shown. Defaults to NULL
which means all rows are shown.
Indices of the columns to be shown. Defaults to NULL
which means all columns are shown.
How many rows are combined in a block. Defaults to \(1\).
How many columns are combined in a block. Defaults to \(1\).
Automatically combines labels of cells in blocks.
If FALSE
, you must provide the final columnlabels and/or rowlabels.
Defaults to TRUE
.
Angle of the column labels. Defaults to \(90\).
Size of row title and column title. Defaults to \(1.1\).
Adjust row labels: 0=left, 0.5=centered, 1=right. Defaults to \(1\).
Adjust column labels: 0=left, 0.5=centered, 1=right. Defaults to \(1\).
Parameter regulating the contrast of colors, should be in \([1,5]\). Defaults to \(1\).
If TRUE
, the color is gradually adjusted in function of the outlyingness. Defaults to TRUE
.
Standardized residuals bigger than this will get the darkest color.
Whether or not to draw black circles indicating the outlying rows.
Rousseeuw, P.J., Van den Bossche W. (2018). Detecting Deviating Data Cells. Technometrics, 60(2), 135-145.
# NOT RUN {
# For examples of the cellmap, we refer to the vignette:
vignette("DDC_examples")
# }
Run the code above in your browser using DataLab