ScaleCurve-class: ScaleCurve and ScaleCurveList

Description Slots Examples

Description

ScaleCurve is a class that stores results of scaleCurve function.

Slots

ScaleCurve intherits behviour from numeric vector, so raw values of ScaleCurve can be accessed via as.numeric(...).

alpha

central regions

.

The mechanism of creating plots with multiple curves is shown in DepthCurve (same mechanism is applied for AsymmetryCurve).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
require(MASS)
require(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, method = "Projection", plot = FALSE)
s2 = scaleCurve(y, method = "Projection", plot = FALSE, name = "Set2")


sc_list = 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, method = "Projection", plot = FALSE)
plot(sc_list%+%s3) # Add third curve and draw a plot

depthproc documentation built on May 2, 2019, 5:46 p.m.