Learn R Programming

dsos (version 0.1.2)

plot.outlier.bayes: Plot Bayesian test for no adverse shift.

Description

Plot Bayesian test for no adverse shift.

Usage

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

Value

A ggplot2 plot with outlier scores and p-value.

Arguments

x

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

...

Placeholder to be compatible with S3 method plot.

See Also

Other s3-method: plot.outlier.test(), 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 <- bf_from_os(os_train, os_test)
plot(test_to_plot)
# }

Run the code above in your browser using DataLab