Learn R Programming

compositions (version 2.0-4)

plotmissingsummary: Plot a Missing Summary

Description

Plots a missing summary as a barplot

Usage

# S3 method for missingSummary
plot(x,...,main="Missings",legend.text=TRUE,
                    col=c("gray","lightgray","yellow","red","white","magenta"))
 as.missingSummary(x,...)

Value

called for its side effect. The return value is not defined.

Arguments

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

Author

K.Gerald van den Boogaart

Details

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.

References

See compositions.missings for more details.

See Also

missingSummary

Examples

Run this code
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))

Run the code above in your browser using DataLab