This function plots a grid of histograms (for continuous variables) and bar plots (for categorical variables) and labels it with the proportion of missing values in each variable.
plot_all(data, nrow = NULL, ncol = NULL, fill = grDevices::grey(0.8),
border = "black", allNA = FALSE, idvars = NULL, xlab = "",
ylab = "frequency", ...)
a data.frame
(or a matrix
)
optional; number of rows in the plot layout; automatically chosen if unspecified
optional; number of columns in the plot layout; automatically chosen if unspecified
colour the histograms and bars are filled with
colour of the borders of the histograms and bars
logical; if FALSE
(default) the proportion of missing
values is only given for variables that have missing values,
if TRUE
it is given for all variables
name of the column that specifies the multi-level grouping structure
labels for the x- and y-axis
Vignette: Visualizing Incomplete Data