View source: R/autoplot_persistence.R
autoplot.persistingoutliers | R Documentation |
This function plots outlier persistence for a range of significance levels using the algorithm lookout, an outlier detection method that uses leave-one-out kernel density estimates and generalized Pareto distributions to find outliers.
## S3 method for class 'persistingoutliers' autoplot(object, alpha = object$alpha, ...)
object |
The output of the function 'persisting_outliers'. |
alpha |
The significance levels to plot. |
... |
Other arguments currently ignored. |
A ggplot object.
X <- rbind( data.frame( x = rnorm(500), y = rnorm(500) ), data.frame( x = rnorm(5, mean = 10, sd = 0.2), y = rnorm(5, mean = 10, sd = 0.2) ) ) plot(X, pch = 19) outliers <- persisting_outliers(X, unitize = FALSE) autoplot(outliers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.