plotxna | R Documentation |
Plot the location of missing data in a matrix.
plotxna(X, pch = 16, col = "red", grid = FALSE, asp = 0, ...)
X |
A |
pch |
Type of point. See |
col |
A color defining the color of the points. |
grid |
Logical. If |
asp |
Scalar. Giving the aspect ratio y/x. The value |
... |
Other arguments to pass in functions |
A plot.
data(datoctane)
X <- datoctane$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 = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.