Description Usage Arguments Value Examples
Multivariate outliers identify rows of data that contain unusual combinations of values. As such, the definition differs from a univariate outlier as being an extreme value. The value of the ith entry in the jth column may belong to a multivariate outlier, but not be a univariate outlier, and vice versa. This visualizes the distinction. In the displayed plot all variables are centered by their respective medians and scaled by their respective average absolute deviations. This standardization is done only after all calculations are done so that all variables are properly aligned with the y-axis of the plot. The x-axis consists of random coordinates, so the plot may differ if created multiple times. No information is lost or changed. The position along the x-axis is randomized so that the values do not fall on a straight line.
1 |
x |
a data frame or matrix of numeric covariates |
rmu |
robust multivariate center |
rcov |
robust covariance matrix |
plot |
if TRUE (the default), the results are plotted using ggplot2. If you desire to make your own plot, plot can be changed to FALSE to return the information used by ggplot2. |
nrow |
the number of rows for ggplot2's facet_wrap. defaults to 1. |
ncol |
optional argument to specify the number of columns for ggplot2's facet wrap. |
a plot or a data frame.
1 2 | out <- cov.ogk(x, all = T)
outlierPlot(x, out$center, out$cov)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.