plot.localdepth: A DD-plot for Local Depth versus Depth

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot.localdepth.R

Description

Provides DD-plot of normalized localdepth versus normalized depth.

Usage

1
2
## 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

1
2
3
4
5
6
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")

localdepth documentation built on May 29, 2017, 10:39 p.m.