Learn R Programming

shapeNA (version 0.0.2)

plot.naBlocks: Plot Missingness Pattern of Data

Description

Function to visualize the missingness patterns for objects of class naBlocks.

Usage

# S3 method for naBlocks
plot(x, ...)

Arguments

x

A naBlocks object.

...

Additional parameters passed on to rect.

Value

No return value.

Examples

Run this code
# NOT RUN {
    x <- mvtnorm::rmvt(100, toeplitz(seq(1, 0.1, length.out = 3)), df = 5)
    y <- mice::ampute(x, mech='MCAR')$amp
    res <- classicShapeNA(y)
    plot(res$naBlocks)
# }

Run the code above in your browser using DataLab