ggmissing {ggplot2} | R Documentation |
The missing values plot is a useful tool to get a rapid overview of the number and pattern of missing values in a dataset. Its strength is much more apparent when used with interactive graphics, as you can see in Mondrian (http://rosuda.org/mondrian) where this plot was copied from.
ggmissing(data, avoid = "stack", order = TRUE, missing.only = TRUE)
data |
input data.frame |
avoid |
whether missings should be stacked or
dodged, see |
order |
if |
missing.only |
if |
## Not run: mmissing <- movies mmissing[sample(nrow(movies), 1000), sample(ncol(movies), 5)] <- NA ggmissing(mmissing) ggmissing(mmissing, order=FALSE, missing.only = FALSE) ggmissing(mmissing, avoid="dodge") + scale_y_sqrt() ## End(Not run)