barplot.shapeNA: Barplot Showcasing Missingness Proportion of the Original...

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Visualize the proportion of missingness per variable in a barplot.

Usage

1
2
## S3 method for class 'shapeNA'
barplot(height, sortNA = FALSE, ...)

Arguments

height

A shapeNA object.

sortNA

A logical. If FALSE, the original variable order is kept. Otherwise the variables are ordered from least to most missingness.

...

Additional graphical arguments passed to barplot.

Value

Invisibly returns a named vector holding the proportion of missingness per variable.

See Also

barplot

Examples

1
2
3
4
5
    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)

shapeNA documentation built on March 15, 2021, 5:06 p.m.