plot.mvout {mvout} | R Documentation |
Plot Method for mvout Objects
Description
Default S3 plot method for objects of class "mvout".
Usage
## S3 method for class 'mvout'
plot(x, outcol = "red", incol = "black", outpch = 0, inpch = 1,
xlab = "PC1", ylab = "PC2", xresign = FALSE, yresign = FALSE, ...)
Arguments
x |
Object of class |
outcol |
Color used for cases labeled as outliers. |
incol |
Color used for cases not labeled as outliers. |
outpch |
Plotting character used for cases labeled as outliers. |
inpch |
Plotting character used for cases not labeled as outliers. |
xlab |
Label for the x-axis. |
ylab |
Label for the y-axis. |
xresign |
Logical argument. If |
yresign |
Logical argument. If |
... |
Additional arguments passed to the |
Details
Produces a bivariate plot highlighting cases that have been flagged as outliers. If method = "princomp"
or method = "factanal"
was used, then the scores
component of x
is plotted. Otherwise the data are projected onto the first two principal components for visualization.
Value
A plot is produced and nothing is returned.
Author(s)
Jesus E. Delgado <delga220@umn.edu> Nathaniel E. Helwig <helwig@umn.edu>
See Also
Examples
# load package and data
library(mvout)
data(pheno)
X <- pheno[,3:9]
# Example using pheno dataset
dir <- c(rep("greater", 4), rep("less", 2), "greater")
set.seed(1) # for reproducible MCD estimate
out <- mvout(X, method = "princomp", rotation = "promax", direction = dir)
plot(out, outpch = 4)