Description Usage Arguments Author(s) See Also Examples
View source: R/plot.epplabOutlier.R
Visualizes which observations are considered as outliers and how often for
an epplabOutlier
object.
1 2 3 |
x |
Object of class |
col |
Which colors should be used for non-outliers and outliers. Default is white and black. |
outlier |
Logical if only observations considered as outliers at least
once should be plotted or all. Default is |
xlab |
Sets the x-axis label. |
ylab |
Sets the y-axis label. |
... |
Graphical parameters passed on to |
Daniel Fischer and Klaus Nordhausen
1 2 3 4 5 6 7 8 9 10 11 12 13 | # creating data with 3 outliers
n <-300
p <- 10
X <- matrix(rnorm(n*p),ncol=p)
X[1,1] <- 9
X[2,4] <- 7
X[3,6] <- 8
# giving the data rownames, obs.1, obs.2 and obs.3 are the outliers.
rownames(X) <- paste("obs",1:n,sep=".")
PP<-EPPlab(X,PPalg="PSO",PPindex="KurtosisMax",n.simu=20, maxiter=20)
OUT<-EPPlabOutlier(PP, k = 3, location = median, scale = mad)
plot(OUT)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.