Description Usage Arguments Examples
Plot the dataset with marks where there are missing value. It allows to have a quick idea of the structure of missing values (Missing at Random or not for example).
1 |
X |
the matrix to analyse (matrix with missing values or correlations matrix) |
what |
indicates what to plot. If |
pch |
for missing, symbol to plot (can set pch="." for large datasets) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
data<-mtcars
require(CorReg)
datamiss=Terminator(target = data,wrath=0.05)#5% of missing values
showdata(datamiss)#plot positions of the missing values
#missing values with a structure
datamiss=Terminator(target = data,diag=1)#diag of missing values
showdata(datamiss)#plot positions of the missing values (no full individuals, no full variable)
opar=par(no.readonly = TRUE)
showdata(X=cor(data),what="correl")
par(opar)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.