plot.localdepth {localdepth} | R Documentation |
Provides DD-plot of normalized localdepth versus normalized depth.
## S3 method for class 'localdepth': plot(x, xlab="Depth", ylab="Local Depth", main="DD plot", mark=0.9, labels=NULL, ...)
x |
an object of class localdepth |
xlab |
a title for the x axis: see title |
ylab |
a title for the y axis: see title |
main |
an overall title for the plot: see title |
mark |
points with local depth or depth greater than mark are shown with their row indices in the dataset |
labels |
labels used to mark the points. It must have the same length as the number of rows of x$y |
... |
graphical parameters can be given as arguments |
The function returns the x
object as invisible
.
Claudio Agostinelli and Mario Romanazzi
set.seed(1234) x <- rnorm(20) tau <- quantile.localdepth(x, probs=0.2, use="volume", method="simplicial") res <- localdepth(x,tau=tau, use="volume", method="simplicial") plot(res, xlab="Simplicial Depth", ylab="Local Simplicial Depth", pch=20) abline(a=0,b=1,lty="dashed")