Plot the result of the D-SOS test.
# S3 method for outlier.test plot(x, ...)
x | A |
---|---|
... | Placeholder to be comptatible with S3 `plot` generic. |
A ggplot2 plot with outlier scores and p-value.
# \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)# }