missPattern {missRows} | R Documentation |
This function inspects and plots the structure of missing individuals in data tables.
missPattern(object, colStrata=NULL, colMissing="grey70", cexTitles=12, legTitle="Strata", missLab="miss", showPlot=TRUE) ## S3 method for class 'missPattern' print(x, ...)
object |
an object of class |
x |
an object of class inheriting from |
colStrata |
a character vector of the same length than the number of strata, containing the color names to be used to annotate the individuals per stratum. |
colMissing |
the fill color for missing individuals. |
cexTitles |
a positive number. The amount by which table titles should be magnified. |
legTitle |
character. The legend title. |
missLab |
character. The label legend for missing individuals. |
showPlot |
logical. Whether the plot will be displayed.
Default is |
... |
not used currently. |
missPattern
calculates the amount of missing/available individuals
in each stratum per data table and plots a missingness map showing where
missingness occurs. For plotting, tables are arranged in individuals (rows)
x features (columns). Data tables are plotted separately on
a same device showing the pattern of missingness. The individuals are colored
according to their stratum whereas missing individuals (rows) are specific
colored (see colMissing
).
A list with the following components:
nbMissing |
a |
isMissing |
a |
ggp |
an object of class |
Ignacio González
#-- load data and create MIDTList object data(NCI60) midt <- MIDTList(NCI60$mae) #-- inspects pattern of missingness patt <- missPattern(midt) patt