powered by
This function can plot aspects of an "outForest" object.
With what = "counts", the number of outliers per variable is visualized as a barplot.
what = "counts"
With what = "scores", outlier scores (i.e., the scaled difference between predicted and observed value) are shown as scatterplot per variable.
what = "scores"
# S3 method for outForest plot(x, what = c("counts", "scores"), ...)
A list.
An object of class "outForest".
What should be plotted? Either "counts" (the default) or "scores".
"counts"
"scores"
Arguments passed to graphics::barplot() or graphics::stripchart().
graphics::barplot()
graphics::stripchart()
irisWithOutliers <- generateOutliers(iris, seed = 345) x <- outForest(irisWithOutliers, verbose = 0) plot(x) plot(x, what = "scores")
Run the code above in your browser using DataLab