mi_parcoord: Parallel Coordinates Plot for imputed values

Description Usage Arguments Author(s) See Also Examples

View source: R/mi_parcoord.R

Description

Draws parallel coordinates plot for a imputed dataset. Highlights all imputed observations of a specific variable in red. All other observations are drawn in grey.

Usage

1
mi_parcoord(input, var, n = "all", nr = 1, col = "rainbow")

Arguments

input

MI object produced by one of themi, mice or Amelia R packages.

var

defines variable that should be highlighted.

n

vector of variable names to plot; by default "all".

nr

the number of the imputation chain to plot or a vector if more than one imputation chain should be plotted.

col

defines in which colors the several imputation chains should be highlighted. Only relevant if nr is a vector.

Author(s)

Paul Brix

See Also

parcoord() from package MASS.

Examples

1
2
3
4
data(FLAS)
require("mice")
FLASmi <- mice(FLAS)
mi_parcoord(FLASmi, var = "MLAT", n = c("FLAS","vSAT","mSAT","eng"))

mmaechler/miP documentation built on May 23, 2019, 5 a.m.