DepthCurve-class: DepthCurve

Description Details Slots Examples

Description

This page describes mechanism behavior of ScaleCurve and AsymmetryCurve

Details

DepthCurve is a virtual class that contains methods (getPlot(...) and plot(...)) for rendering single curve such as ScaleCurve or AsymmetryCurve. Such object can be combined by overloaded operator '

Slots

depth

object of Depth-class

name

name of dataset used on plot

title

title of a plot

alpha

central area values

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(mvtnorm)
x <- mvrnorm(n = 100, mu = c(0, 0), Sigma = 2 * diag(2))
y <- rmvt(n = 100, sigma = diag(2), df = 4)
s1 <- scaleCurve(x, depth_params = list(method = "Projection"))
s2 <- scaleCurve(y, depth_params = list(method = "Projection"), name = "Set2")

sc_list <- combineDepthCurves(s1, s2) # Add one curve to another

plot(sc_list) # Draw plot with two curves

z <- mvrnorm(n = 100, mu = c(0, 0), Sigma = 1 * diag(2))
s3 <- scaleCurve(z, depth_params = list(method = "Projection"))
plot(combineDepthCurves(sc_list, s3)) # Add third curve and draw a plot

zzawadz/DepthProc documentation built on Sept. 27, 2018, 9:11 a.m.