plot.KRDetect {envoutliers} | R Documentation |
Outlier detection plot
Description
Plot of results obtained using functions KRDetect.outliers.changepoint
, KRDetect.outliers.controlchart
and KRDetect.outliers.EV
for identification of outliers.
The function graphically visualizes results obtained using functions for outlier detection implemented in package envoutliers.
Usage
## S3 method for class 'KRDetect'
plot(x, show.segments = TRUE, plot.type = "all",
xlab = "index", ylab = "data values", ...)
Arguments
x |
a KRDetect object obtained as an output of function |
show.segments |
a logical variable specifying if vertical lines representing individual segments are plotted. Only required for results obtained using |
plot.type |
a type of plot with outliers displayed. Possible options for
Possible options for
|
xlab |
a title for the x axis |
ylab |
a title for the y axis |
... |
further arguments to be passed to the |
Details
This function plots the results obtained using function KRDetect.outliers.changepoint
, KRDetect.outliers.controlchart
or KRDetect.outliers.EV
implemented in package envoutliers and identificating outliers.
Examples
data("mydata", package = "openair")
x = mydata$o3[format(mydata$date, "%m %Y") == "12 2002"]
result = KRDetect.outliers.EV(x)
plot(result)