plot.missingness: Plot missingness

View source: R/missingness.R

plot.missingnessR Documentation

Plot missingness

Description

Plot missingness

Usage

## S3 method for class 'missingness'
plot(
  x,
  remove_zeros = FALSE,
  max_char = 40,
  title = NULL,
  font_size = 11,
  point_size = 3,
  print = TRUE,
  ...
)

Arguments

x

Data frame from missingness

remove_zeros

Remove variables with no missingness from the plot? Default = FALSE

max_char

Maximum length of variable names to leave untruncated. Default = 40; use Inf to prevent truncation. Variable names longer than this will be truncated to leave the beginning and end of each variable name, bridged by " ... ".

title

Plot title

font_size

Relative size of all fonts in plot, default = 11

point_size

Size of dots, default = 3

print

Print the plot? Default = TRUE

...

Unused

Value

A ggplot object, invisibly.

See Also

missingness

Examples

pima_diabetes %>%
  missingness() %>%
  plot()

healthcareai documentation built on Sept. 5, 2022, 5:12 p.m.