parcoordMiss(x, delimiter = NULL, highlight = NULL, selection = c("any",
"all"), plotvars = NULL, plotNA = TRUE, col = c("skyblue", "red",
"skyblue4", "red4", "orange", "orange4"), alpha = NULL, lty = par("lty"),
xlim = NULL, ylim = NULL, main = NULL, sub = NULL, xlab = NULL,
ylab = NULL, labels = TRUE, xpd = NULL, interactive = TRUE, ...)data.frame.x needs to have
colnames). If given, it is used to determine the corresponding
iNULL (the default), all variables are used for highlighting."any"
(highlighting of missing/imputed values in any of the highlight
variables) and "all" (highlightiNULL
(the default), all variables are plotted.plotNA is TRUE, a vector of length six giving
the colors to be used for observations with different combinations of
observed and missing/imputed values in the plot variables and highlight
variables (vectors of length one orNULL. This can be used to prevent
overplotting.plotNA is TRUE, a vector of length four giving
the line types to be used for observations with different combinations of
observed and missing/imputed values in the plot variables and highlight
variables (vectors of length oNULL, it defaults to TRUE unless
axis limits are specified.parcoordMiss, further graphical parameters to be
passed down (see par). For TKRparcoordMiss,
further arguments to be passed to parcoordMiss.labelsplotNA. Connected lines can then be drawn for all
observations. Nevertheless, a caveat of this display is that it may draw
attention away from the main relationships between the variables.
If interactive is TRUE, it is possible switch between this
display and the standard display without the separate level for missing
values by clicking in the top margin of the plot. In addition, the variables
to be used for highlighting can be selected interactively. Observations
with missing/imputed values in any or in all of the selected variables are
highlighted (as determined by selection). A variable can be added to
the selection by clicking on a coordinate axis. If a variable is already
selected, clicking on its coordinate axis removes it from the selection.
Clicking anywhere outside the plot region (except the top margin, if
missing/imputed values exist) quits the interactive session.pboxdata(chorizonDL, package = "VIM")
## for missing values
parcoordMiss(chorizonDL[,c(15,101:110)],
plotvars=2:11, interactive = FALSE)
legend("top", col = c("skyblue", "red"), lwd = c(1,1),
legend = c("observed in Bi", "missing in Bi"))
## for imputed values
parcoordMiss(kNN(chorizonDL[,c(15,101:110)]), delimiter = "_imp" ,
plotvars=2:11, interactive = FALSE)
legend("top", col = c("skyblue", "orange"), lwd = c(1,1),
legend = c("observed in Bi", "imputed in Bi"))Run the code above in your browser using DataLab