Movatterモバイル変換


[0]ホーム

URL:


An introduction to the spinebil package

About

Thespinebil package provides tools to explore and evaluate the behavior ofProjection Pursuit Index (PPI) functions usingtour methods, specifically focusing on interpolated paths and line graphs. It offers a structured approach to assessing how different PPI functions behave when applied to data with known structure and noise, by tracing their values along controlled transitions between projection planes.

Projection pursuit is a powerful technique in multivariate statistics that seeks “interesting” low-dimensional projections of high-dimensional data. These projections are identified by optimizing an index function designed to highlight structure such as clustering, outliers, or non-Gaussianity.

The methods implemented inspinebil are described in detail inthis paper, and the package builds on prior work such as the tourr package.

Installation

The package can be installed from CRAN using:

install.packages("spinebil")

You can install the development version fromGitHub with:

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

Purpose

The main goal ofspinebil is to:

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 distributiond<-spiral_data(100,4)## the first two parameters are noise## parameters 3 and 4 contain a spiral## we write a list with the nuisance and structured planem<-list(basis_matrix(1,2,4),basis_matrix(3,4,4))## the index functions to be evaluated should also be passed in a listindex_list<-list(tourr::holes(), tourr::cmass())index_labels<-c("holes","cmass")## we can now compute the index traces and plot themtrace<-get_trace(d, m, index_list, index_labels)
Converting input data to the required matrix format.
plot_trace(trace)

Usage

spinebil is particularly useful for researchers and developers designing new projection pursuit indices or wanting to better understand the strengths and weaknesses of existing ones. By using tour-based visual diagnostics, it helps bridge the gap between statistical rigor and exploratory data analysis.


[8]ページ先頭

©2009-2025 Movatter.jp