plot.localdepth {localdepth}R Documentation

A DD-plot for Local Depth versus Depth

Description

Provides DD-plot of normalized localdepth versus normalized depth.

Usage

## S3 method for class 'localdepth':
plot(x, xlab="Depth", ylab="Local Depth", main="DD plot", mark=0.9, labels=NULL, ...)

Arguments

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

Value

The function returns the x object as invisible.

Author(s)

Claudio Agostinelli and Mario Romanazzi

See Also

localdepth

Examples

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")

[Package localdepth version 0.5-4 Index]