powered by
Plot the location of missing data in a matrix.
plotxna(X, pch = 16, col = "red", grid = FALSE, asp = 0, ...)
A plot.
A data set (\(n x p\)).
Type of point. See points.
points
A color defining the color of the points.
Logical. If TRUE, a grid is plotted for representing the matrix rows an columns. Default to FALSE.
TRUE
FALSE
Scalar. Giving the aspect ratio y/x. The value asp = 0 is the default in plot.default (no constraints on the ratio). See plot.default.
asp = 0
plot.default
Other arguments to pass in functions plot.
plot
data(octane) X <- octane$X n <- nrow(X) p <- ncol(X) N <- n * p s <- sample(1:N, size = 50) zX <- replace(X, s, NA) plotxna(zX) plotxna(zX, grid = TRUE, asp = 0)
Run the code above in your browser using DataLab