plot.shapeNA {shapeNA} | R Documentation |
Visualization of Shape Estimate
Description
Function to visualize the shape matrix from objects of class shapeNA
by
plotting a heatmap where light colored cells indicate small values and dark
colored cells indicate high values.
Usage
## S3 method for class 'shapeNA'
plot(x, message = TRUE, ...)
Arguments
x |
A |
message |
A logical, If |
... |
Additional parameters passed to |
Value
A matrix with the proportion of observed values for each variable.
Examples
x <- mvtnorm::rmvt(100, toeplitz(seq(1, 0.1, length.out = 3)), df = 5)
y <- mice::ampute(x, mech='MCAR')$amp
res <- tylerShapeNA(y)
## default plot
plot(res)
## plot result in gray scale - reverse order to get a palette starting
## with the lightest instead of the darkest color
plot(res, col = gray.colors(9, rev = TRUE))
[Package shapeNA version 0.0.2 Index]