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

    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]