Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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.

Value

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

Author(s)

K.Gerald van den Boogaart

References

See compositions.missings for more details.

See Also

Examples

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))

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.