This function plots a grid of histograms (for continuous variables) and barplots (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,
use_level = FALSE,
idvar,
xlab = "",
ylab = "frequency",
...
)

## Arguments

data a data.frame (or a matrix) optional number of rows and columns in the plot layout; automatically chosen if unspecified optional number of rows and columns in the plot layout; automatically chosen if unspecified color the histograms and bars are filled with color 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 logical; should the multi-level structure be taken into account? This requires specification of the argument idvar. name of the column that specifies the multi-level grouping structure labels for the x- and y-axis labels for the x- and y-axis additional parameters passed to barplot and hist

op <- par(mar = c(2,2,3,1), mgp = c(2, 0.6, 0))
plot_all(wideDF)par(op)