Learn R Programming

spinebil (version 0.1.6)

profileRotation: Test rotation invariance of index functions for selected 2-d data set.

Description

Ideally a projection pursuit index should be roation invariant, we test this explicitly by profiling the index while rotating a distribution.

Usage

profileRotation(d, indexList, indexLabels, n = 200)

Value

index values for each rotation step

Arguments

d

data (2 column matrix containing distribution to be rotated)

indexList

list of index functions to calculate for each entry

indexLabels

labels used in the output

n

number of steps in the rotation (default = 200)

Examples

Run this code
d <- as.matrix(sinData(2, 30))
indexList <- list(tourr::holes(), scagIndex("stringy"), mineIndexE("MIC"))
indexLabels <- c("holes", "skinny", "mic")
pRot <- profileRotation(d, indexList, indexLabels, n = 50)
plotRotation(pRot)

Run the code above in your browser using DataLab