This function generates plots to visualize missing values in a data frame. It includes two types of plots:
- A percentage plot: Displays the percentage of missing values for each variable, allowing quick identification
of variables with high missingness.
- A row plot: Illustrates the distribution of missing values across rows, providing insights into patterns of missingness.
Usage
missing_values_plot(df, percentage = TRUE, row = TRUE, html = FALSE)
Value
A list of plots, including a percentage plot and/or a row plot.
Arguments
df
The input data frame.
percentage
A logical argument (default: TRUE) to generate a percentage plot.
row
A logical argument (default: TRUE) to generate a row plot.
html
Whether the output should be in HTML format,used when knitting into HTML. Default is FALSE.