Learn R Programming

DepthProc (version 1.0.3)

lsdAddContour: Adds location scale depth contour to a plot.

Description

Adds location scale depth contour to a plot.

Usage

lsdAddContour(x, cont = NULL, ...)

## S3 method for class 'LSDepthContour': lsdAddContour(x, cont = NULL, ...)

Arguments

x
object of class LSDepthContour
cont
depth of contour to plot
...
other arguments passed to polygon function

Examples

Run this code
smp = rf(100,5,10)
x = lsdSampleDepthContours(smp)
plot(x)
lsdAddContour(x,0.1, col = "grey50")
lsdAddContour(x,0.3, col = "grey10", border = "red", lwd = 4)

Run the code above in your browser using DataLab