Learn R Programming

DepthProc (version 1.0.3)

lsdGetContour: Get location-scale contour from LSDepthContour object

Description

Get location-scale contour from LSDepthContour object

Usage

lsdGetContour(x, cont)

## S3 method for class '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
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