Learn R Programming

odetector (version 1.0.1)

plot.outliers: Plot outliers

Description

Plots the outliers found in a data set.

Usage

# S3 method for outliers
plot(x, ot=1, ...)

Value

plots of the object of outliers class.

Arguments

x

an object of outliers class containing the outliers to be plotted.

ot

an integer ranges [1,4] representing the outlier detection approach.

...

additional arguments for S3 method plot.

Author

Zeynel Cebeci, Cagatay Cebeci, Yalcin Tahtali

See Also

detect.outliers, pairs.outliers, print.outliers, remove.outliers, summary.outliers

Examples

Run this code
# Load the dataset x3p4c and extract the first three columns to x
data(x3p4c)
x <- x3p4c[,1:3]

# For 4 clusters, run Unsupervised Possibilistic Fuzzy C-Means (UPFC) algorithm
# of the package ppclust 
res.upfc <- ppclust::upfc(x, centers=4)

# Detect the outliers 
outs <- detect.outliers(res.upfc)
 
# Plot the outliers
plot(outs, ot=1)

Run the code above in your browser using DataLab