Learn R Programming

DepthProc (version 2.1.5)

lsdGetContour: Get location-scale contour from LSDepthContour object.

Description

Get numeric values of the location-scale depth contour from existing object of LSDepthContour class.

Usage

lsdGetContour(x, cont)

# S4 method for LSDepthContour lsdGetContour(x, cont)

Arguments

x

object of class LSDepthContour

cont

single numeric --- depth of contour to return

Details

Calculations are based on lsdepth algorithm written by Ch. Muller.

Examples

Run this code
# NOT RUN {
dcont <- lsdSampleDepthContours(rf(200, 4, 7), depth = c(0.1, 0.2))

# get contour that is present in dcont object
lsdGetContour(dcont, 0.1)

# get contour that is not present in dcont
# it will be automatically calculated
lsdGetContour(dcont, 0.3)
# }

Run the code above in your browser using DataLab