Learn R Programming

compositions (version 1.01-1)

plotmissingsummary: Plot a Missing Summary

Description

Plots a missing summary as a barplot

Usage

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

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

Value

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

Details

The different types of missings are drawn in quasi-self-understandable colors: normal gray for NMV, and lightgray as for BDT (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,detectionlimit=0.05,MAR=0.05,MNAR=0.05,SZ=0.05)
xnew
plot(missingSummary(xnew))

Run the code above in your browser using DataLab