plot.outForest: Plot for outForest

Description Usage Arguments Value Examples

View source: R/plot.R

Description

This function can plot aspects of an 'outForest' object. For what = "counts", the number of outliers per variable is visualized as a barplot. For what = "scores", outlier scores (i.e. the scaled difference between predicted and observed value) are shown as scatter plot per variable.

Usage

1
2
## S3 method for class 'outForest'
plot(x, what = c("counts", "scores"), ...)

Arguments

x

An object of class outForest.

what

What should be plotted? One of "counts" (the default) or "scores".

...

Further arguments passed to graphics::barplot or graphics::stripchart.

Value

An object of class ggplot2.

Examples

1
2
3
4
irisWithOutliers <- generateOutliers(iris, seed = 345)
x <- outForest(irisWithOutliers, verbose = 0)
plot(x)
plot(x, what = "scores")

outForest documentation built on Jan. 7, 2021, 9:10 a.m.