Learn R Programming

dsos (version 0.1.2)

plot.outlier.test: Plot frequentist test for no adverse shift.

Description

Plot frequentist test for no adverse shift.

Usage

# S3 method for outlier.test
plot(x, ...)

Value

A ggplot2 plot with outlier scores and p-value.

Arguments

x

A outlier.test result from test of no adverse shift.

...

Placeholder to be compatible with S3 method plot.

See Also

Other s3-method: plot.outlier.bayes(), print.outlier.bayes(), print.outlier.test()

Examples

Run this code
# \donttest{
set.seed(12345)
os_train <- rnorm(n = 3e2)
os_test <- rnorm(n = 3e2)
test_to_plot <- at_from_os(os_train, os_test)
# Also: pt_from_os(os_train, os_test) for permutation test
plot(test_to_plot)
# }

Run the code above in your browser using DataLab