dss_plot_md_pattern: Visualization of missing data pattern in the reference...

View source: R/dss_plot_md_pattern.R

dss_plot_md_patternR Documentation

Visualization of missing data pattern in the reference dataframe

Description

This function is a wrapper for two external functions offering facilities for visualizing missing data patterns: visdat::vis_miss() and mice::md.pattern().

Usage

dss_plot_md_pattern(ref, target, type = "map", rotate = TRUE)

Arguments

ref

dataframe. Reference dataset composed of individual of known sex, typically returned by dss_check_data.

target

1-row dataframe. Target individual.

type

character string; either "map" or "pattern". Type of visualization for missing data pattern. map uses vis_miss from visdat package, whereas pattern uses md.pattern from mice package.

rotate

boolean. Should variable names be rotated on the plot to improve readability?

Value

No value is returned; this function only produces a graphical output.

Note

ref must have at least two numeric variables (missing values “patterns” have no meanings for one single variable).

Author(s)

Frédéric Santos.

See Also

vis_miss, md.pattern.


frederic-santos/rdss documentation built on March 25, 2023, 5:25 p.m.