barplot.shapeNA {shapeNA} | R Documentation |
Barplot Showcasing Missingness Proportion of the Original Data
Description
Visualize the proportion of missingness per variable in a barplot.
Usage
## S3 method for class 'shapeNA'
barplot(height, sortNA = FALSE, ...)
Arguments
height |
A |
sortNA |
A logical. If |
... |
Additional graphical arguments passed to
|
Value
Invisibly returns a named vector holding the proportion of missingness per variable.
See Also
Examples
S <- toeplitz(seq(1, 0.1, length.out = 3))
x <- mvtnorm::rmvt(100, S, df = 5)
y <- mice::ampute(x, mech='MCAR')$amp
res <- classicShapeNA(y)
barplot(res)
[Package shapeNA version 0.0.2 Index]