mplot3_missing: Plot missingness

View source: R/mplot3_missing.R

mplot3_missingR Documentation

Plot missingness

Description

Plot missingness

Usage

mplot3_missing(
  x,
  feat.names = NULL,
  case.names = NULL,
  main = NULL,
  col.missing = "#FE4AA3",
  show = c("percent", "total"),
  names.srt = 90,
  case.names.x = 0.25,
  case.names.every = NULL,
  theme = rtTheme,
  alpha = 1,
  mar = c(3, 3.5, 5.5, 1),
  oma = c(0.5, 0.5, 0.5, 0.5),
  par.reset = TRUE,
  ...
)

Arguments

x

Data matrix or data.frame

feat.names

Character: Feature names. Defaults to colnames(x)

case.names

Character: Case names. Defaults to rownames(x)

main

Character: Main title

col.missing

Color for missing cases.

show

Character: "percent" or "total". Show percent missing or total missing per column on the x-axis

names.srt

Numeric: Angle of feature names in degrees.

case.names.x

Numeric: x position of case names

case.names.every

Numeric: Show case names every this many cases

theme

Character: Run themes() for available themes

alpha

Numeric: Multiply theme's fg color by this amount

mar

Float, vector, length 4: Margins; see par("mar")

oma

Float, vector, length 4: Outer margins; see par("oma")

par.reset

Logical: If TRUE, reset par setting before exiting.

...

Additional arguments to be passed to theme function

Examples

## Not run: 
dat <- iris
dat[c(1, 5, 17:20, 110, 115, 140), 1] <-
dat[c(12, 15, 55, 73, 100:103), 2] <-
dat[sample(1:150, 25), 4] <- NA
mplot_missing(dat)

## End(Not run)


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.