Learn R Programming

multilevelPSA (version 1.3.0)

missing.plot: Returns a heat map graphic representing missingness of variables grouped by the given grouping vector.

Description

NOTE: This is an experimental function and the results may vary depending on the nature of the dataset.

Usage

missing.plot(
  x,
  grouping,
  grid = FALSE,
  widths = c(ggplot2::unit(3, "null"), ggplot2::unit(1, "inches")),
  heights = c(ggplot2::unit(1, "inches"), ggplot2::unit(3, "null")),
  color = "red",
  ...
)

Value

a ggplot2 expression

Arguments

x

a data frame containing the variables to visualize missingness

grouping

a vector of length nrow(vars) corresponding to how missing will be grouped by

grid

whether to draw a grid between tiles

widths

the ratio of the widths of the heatmap and histogram.

heights

the ratio of the heights of the heatmap and histogram.

color

the color used for indicating missingness.

...

currently unused.

See Also

plot.mlpsa