Learn R Programming

spinebil

Studying Projection Pursuit INdex functions through Exploration Based on Interpolated tour paths and Line graphs. spinebil provides functionalities to evaluate the performance of projection pursuit index functions using tour methods as presented in this paper.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("uschiLaa/spinebil")

Example

To evaluate the index behaviour on a known input distribution we can trace its value when interpolating a tour path, for example moving from nuisance and structured projection.

library(spinebil)
## sample from the spiral distribution
d <- spiralData(4, 100)
## the first two parameters are noise
## parameters 3 and 4 contain a spiral
## we write a list with the nuisance and structured plane
m <- list(basisMatrix(1,2,4), basisMatrix(3,4,4))
## the index functions to be evaluated should also be passed in a list
indexList <- list(tourr::holes(), tourr::cmass())
indexLabels <- c("holes", "cmass")
## we can now compute the index traces and plot them
trace <- getTrace(d, m, indexList, indexLabels)
plotTrace(trace)

Copy Link

Version

Install

install.packages('spinebil')

Monthly Downloads

5

Version

0.1.0

License

GPL-3

Maintainer

Ursula Laa

Last Published

August 28th, 2019

Functions in spinebil (0.1.0)

profileRotation

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

Compare traces with different smoothing options.
%>%

Pipe operator
jitterPoints

Re-evaluate index after jittering all points by an amount alpha.
pipeData

Generating a sample of points on a pipe
spiralData

Generating spiral sample
plotRotation

Plot rotation traces of indexes obtained with profileRotation.
squintAngleEstimate

Estimating squint angle of 2-d structure in high-d dataset under selected index.
step_fraction

Step along an interpolated path by fraction of path length.
scagIndex

Matching index functions to the required format.
timeSequence

Time each index evaluation for projections in the tour path.
plotSmoothingComparison

Plot the comparison of smoothing methods.
plotTrace

sinData

Generating sine wave sample
spinebil

spinebil
geodesic_info

Calculate information required to interpolate along a geodesic path between two frames.
distanceDist

Collecting all pairwise distances between input planes.
jitterAngle

Re-evaluate index after jittering the projection by an angle alpha.
basis_nearby

Generate nearby bases, e.g. for simulated annealing.
getIndexMean

Evaluate mean index value over n jittered views.
distanceToSp

Collecting distances between input planes and input special plane.
basisMatrix

Generate 2-d basis in directions i, j in n dimensions (i,j <= n)
getTrace

Tracing the index over an interpolated planned tour path.
basisVector

Generate basis vector in direction i in n dimensions (i <= n)