plot.outlier.test: Plot the result of the D-SOS test.

Description Usage Arguments Value Examples

View source: R/dsos-plot.R

Description

Plot the result of the D-SOS test.

Usage

1
2
## S3 method for class 'outlier.test'
plot(x, ...)

Arguments

x

A outlier.test object from a D-SOS test.

...

Placeholder to be comptatible with S3 'plot' generic.

Value

A ggplot2 plot with outlier scores and p-value.

Examples

1
2
3
4
5
6
set.seed(12345)
data(iris)
x_train <- iris[1:50, 1:4] # Training sample: Species == 'setosa'
x_test <- iris[51:100, 1:4] # Test sample: Species == 'versicolor'
iris_test <- od_pt(x_train, x_test)
plot(iris_test)

rbc-research/dsos documentation built on Dec. 22, 2021, 1:01 p.m.