xyplot.mads | R Documentation |
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 class 'mads'
xyplot(
x,
data,
which.pat = NULL,
standardized = TRUE,
layout = NULL,
colors = mdc(1:2),
...
)
x |
A |
data |
A string or vector of variable names that needs to be plotted. As a default, all variables will be plotted. |
which.pat |
A scalar or vector indicating which patterns need to be plotted. As a default, all patterns are plotted. |
standardized |
Logical. Whether the scatterplots need to be created from standardized data or not. Default is TRUE. |
layout |
A vector of two values indicating how the scatterplots of one
pattern should be divided over the plot. For example, |
colors |
A vector of two RGB values defining the colors of the non-amputed and
amputed data respectively. RGB values can be obtained with
|
... |
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.
The mads
object contains all the information you need to
make any desired plots. Check mads
or the vignette Multivariate
Amputation using Ampute to understand the contents of class object mads
.
Rianne Schouten, 2016
ampute
, mads
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.