Plotting method to investigate relation between amputed data and the weighted sum
scores. Based on lattice
. xyplot
produces scatterplots.
The function plots the variables against the weighted sum scores. The function
automatically separates the amputed and non-amputed data to see the relation between
the amputation and the weighted sum scores.
# S3 method for mads
xyplot(x, data, which.pat = NULL, standardized = TRUE,
layout = NULL, colors = mdc(1:2), ...)
A mads
object, typically created by ampute
.
A string or vector of variable names that needs to be plotted. As a default, all variables will be plotted.
A scalar or vector indicating which patterns need to be plotted. As a default, all patterns are plotted.
Logical. Whether the scatterplots need to be created from standardized data or not. Default is TRUE.
A vector of two values indicating how the scatterplots of one
pattern should be divided over the plot. For example, c(2, 3)
indicates
that the scatterplots of six variables need to be placed on 3 rows and 2 columns.
There are several defaults for different #variables. Note that for more than
9 variables, multiple plots will be created automatically.
A vector of two RGB values defining the colors of the non-amputed and
amputed data respectively. RGB values can be obtained with hcl
.
Not used, but for consistency with generic
A list containing the scatterplots. Note that a new pattern will always be shown in a new plot.
ampute
, bwplot
, Lattice
for
an overview of the package, mads-class