Description Usage Arguments Value Examples
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.
1 2 |
x |
An object of class |
what |
What should be plotted? One of "counts" (the default) or "scores". |
... |
Further arguments passed to |
An object of class ggplot2
.
1 2 3 4 | irisWithOutliers <- generateOutliers(iris, seed = 345)
x <- outForest(irisWithOutliers, verbose = 0)
plot(x)
plot(x, what = "scores")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.