mdc
returns colors used to distinguish observed, missing and
combined data in plotting. mice.theme
return a partial list of
named objects that can be used as a theme in stripplot
,
bwplot
, densityplot
and xyplot
.mdc(r="observed", s="symbol", transparent=TRUE,
cso = ifelse(transparent, hcl(240,100,40,0.7), hcl(240,100,40,1)),
csi = ifelse(transparent, hcl(0,100,40,0.7), hcl(0,100,40,1)),
csc = ifelse(transparent, "gray40", "black"),
clo = ifelse(transparent, hcl(240,100,40,0.8), hcl(240,100,40,1)),
cli = ifelse(transparent, hcl(0,100,40,0.8), hcl(0,100,40,1)),
clc = ifelse(transparent, "gray40", "black"))mice.theme()
cso
, 2=csi
, 3=csc
,
4=clo
, 5=cli
and 6=clc
. Alternatively,
r
may containsymbol
" or
"line
", or abbreviations thereof.TRUE
.mdc
returns a vector containing color definitions. The length of the output vector is
calculate from the length of r
and s
. Elements of the
input vectors are
repeated if needed. mice.theme
return a named list that can be
used as a theme in the functions in hcl
,
rgb
,
xyplot.mids
,
xyplot
,
trellis.par.set
# all six colors
mdc(1:6)
# lines color for observed and missing data
mdc(c("obs","mis"), "lin")
Run the code above in your browser using DataLab