View source: R/mplot3_missing.R
mplot3_missing | R Documentation |
Plot missingness
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,
...
)
x |
Data matrix or data.frame |
feat.names |
Character: Feature names. Defaults to |
case.names |
Character: Case names. Defaults to |
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 |
alpha |
Numeric: Multiply theme's |
mar |
Float, vector, length 4: Margins; see |
oma |
Float, vector, length 4: Outer margins; see |
par.reset |
Logical: If TRUE, reset |
... |
Additional arguments to be passed to theme function |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.