Learn R Programming

localdepth (version 0.5-7)

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

Description

Provides DD-plot of normalized localdepth versus normalized depth.

Usage

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

See Also

localdepth

Examples

Run this code
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")

Run the code above in your browser using DataLab