pbox(x, delimiter = NULL, pos = 1, selection = c("none", "any", "all"), col = c("skyblue", "red", "red4", "orange", "orange4"), numbers = TRUE, cex.numbers = par("cex"), xlim = NULL, ylim = NULL, main = NULL, sub = NULL, xlab = NULL, ylab = NULL, axes = TRUE, frame.plot = axes, labels = axes, interactive = TRUE, ...)
data.frame
.x
needs to have
colnames
). If given, it is used to determine the corresponding
imputation-index for any imputed variable (a logical-vector indicating which
values of the variable have been imputed). If such imputation-indices are
found, they are used for highlighting and the colors are adjusted according
to the given colors for imputed variables (see col
).x
are used for grouping according to
missingness/number of imputed missings."none"
(grouping according to missingness/number
of imputed missings in every other variable that contains missing/imputed
values), "any"
(grouping according to missingness/number of imputed
missings in any of the additional variables) and "all"
(grouping according to missingness/number of imputed missings in all
of the additional variables).pbox
, further arguments and graphical parameters to
be passed to boxplot
and other functions. For
TKRpbox
, further arguments to be passed to pbox
.boxplot
.
selection
are produced for the
variable of interest.Additionally, the frequencies of the missing/imputed values can be represented by numbers. If so, the first line corresponds to the observed values of the variable of interest and their distribution in the different groups, the second line to the missing/imputed values.
If interactive=TRUE
, clicking in the left margin of the plot results
in switching to the previous variable and clicking in the right margin
results in switching to the next variable. Clicking anywhere else on the
graphics device quits the interactive session.
parcoordMiss
data(chorizonDL, package = "VIM")
## for missing values
pbox(log(chorizonDL[, c(4,5,8,10,11,16:17,19,25,29,37,38,40)]))
## for imputed values
pbox(kNN(log(chorizonDL[, c(4,8,10,11,17,19,25,29,37,38,40)])),
delimiter = "_imp")
Run the code above in your browser using DataLab