Last data update: 2014.03.03

R: Display Outlier Detection Results
plotHDoutliersR Documentation

Display Outlier Detection Results

Description

Plotting function outliers detected

Usage

plotHDoutliers(data, indexes = NULL, ...) 

Arguments

data

A vector, matrix, or data frame consisting of numeric and/or categorical variables.

indexes

The (row) indexes of the outliers in data.

...

Additional plotting arguments.

Details

Produces a plot of the data showing the outliers. If the data has more than two dimensions, it is plotted onto the principal components of the data that remains after removing outliers.

Value

The indexes of the observations determined to be outliers.

References

Wilkinson, L. (2016). Visualizing Outliers.

See Also

HDoutliers,

Examples


data(dots)
out.W <- HDoutliers(dots$W)
## Not run: 
plotHDoutliers(dots$W,out.W)
## End(Not run)

data(ex2D)
out.ex2D <- HDoutliers(ex2D)
## Not run: 
plotHDoutliers(ex2D,out.ex2D)
## End(Not run)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(HDoutliers)
Loading required package: FNN
Loading required package: FactoMineR
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HDoutliers/plotHDoutliers.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotHDoutliers
> ### Title: Display Outlier Detection Results
> ### Aliases: plotHDoutliers
> ### Keywords: cluster
> 
> ### ** Examples
> 
> 
> data(dots)
> out.W <- HDoutliers(dots$W)
> ## Not run: 
> ##D plotHDoutliers(dots$W,out.W)
> ## End(Not run)
> 
> data(ex2D)
> out.ex2D <- HDoutliers(ex2D)
> ## Not run: 
> ##D plotHDoutliers(ex2D,out.ex2D)
> ## End(Not run)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>