missing_values_plot {AnalysisLin}R Documentation

Missing Values Plot

Description

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)

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.

Value

A list of plots, including a percentage plot and/or a row plot.

Examples


data("airquality")
missing_values_plot(df = airquality, percentage = TRUE, row = TRUE)


[Package AnalysisLin version 0.1.2 Index]