plotmissingsummary | R Documentation |
Plots a missing summary as a barplot
## S3 method for class 'missingSummary'
plot(x,...,main="Missings",legend.text=TRUE,
col=c("gray","lightgray","yellow","red","white","magenta"))
as.missingSummary(x,...)
x |
a missingSummary table with columns representing different types of missing |
... |
further graphical parameters to barplot |
main |
as in barplot |
legend.text |
as in barplot |
col |
as in barplot |
The different types of missings are drawn in quasi-self-understandable colors: normal gray for NMV, and lightgray as for BDL (since they contain semi-numeric information), yellow (slight warning) for MAR, red (serious warning) for MNAR, white (because they are non-existing) for SZ, and magenta for the strange case of errors.
called for its side effect. The return value is not defined.
K.Gerald van den Boogaart
See compositions.missings for more details.
missingSummary
data(SimulatedAmounts)
x <- acomp(sa.lognormals)
xnew <- simulateMissings(x,dl=0.05,MAR=0.05,MNAR=0.05,SZ=0.05)
xnew
plot(missingSummary(xnew))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.