autoplot.summarizeNA: Graphical Display of Missing Data Pattern

autoplot.summarizeNAR Documentation

Graphical Display of Missing Data Pattern

Description

Graphical representation of the possible missing data patterns in the dataset.

Usage

## S3 method for class 'summarizeNA'
autoplot(
  object,
  variable = NULL,
  size.text = 16,
  add.missing = " missing",
  order.pattern = NULL,
  ...
)

## S3 method for class 'summarizeNA'
plot(x, ...)

Arguments

object, x

a summarizeNA object, output of the summarizeNA function.

variable

[character] variable for which the missing patterns should be displayed. Only required when the argument repetition has been specified when calling summarizeNA.

size.text

[numeric, >0] size of the font used to display text.

add.missing

[logical] should the number of missing values per variable be added to the x-axis tick labels.

order.pattern

[numeric vector or character] in which order the missing data pattern should be displayed. Can either be a numeric vector indexing the patterns or a character refering to order the patterns per number of missing values ("n.missing") or number of observations ("frequency").

...

Not used. For compatibility with the generic method.

Value

A list with two elements

  • data: data used to create the graphical display.

  • plot: ggplot object.

Functions

  • plot(summarizeNA): Graphical Display of Missing Data Pattern


LMMstar documentation built on Nov. 9, 2023, 1:06 a.m.