Plot the result of the D-SOS test.

# S3 method for 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

# \donttest{ 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)
# }