Learn R Programming

ridgetorus (version 1.0.3)

PCA on the Torus via Density Ridges

Description

Implementation of a Principal Component Analysis (PCA) in the torus via density ridge estimation. The main function, ridge_pca(), obtains the relevant density ridge for bivariate sine von Mises and bivariate wrapped Cauchy distribution models and provides the associated scores and variance decomposition. Auxiliary functions for evaluating, fitting, and sampling these models are also provided. The package provides replicability to García-Portugués and Prieto-Tirado (2023) .

Copy Link

Version

Install

install.packages('ridgetorus')

Monthly Downloads

202

Version

1.0.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Eduardo Portugues

Last Published

July 27th, 2025

Functions in ridgetorus (1.0.3)

show_ridge_pca

Illustration of toroidal PCA via density ridges
torus_dist

Toroidal distances
torus_pairs

Toroidal pairs plot
ridge_scores

Scores and scales for Fourier-fitted ridge curves
santabarbara

Santa Barbara currents
ridgetorus-package

ridgetorus: PCA on the Torus via Density Ridges
ridge_fourier_fit

Fourier expansion of a given curve
earthquakes

Japanese earthquakes dataset
biv_lrt

Tests of homogeneity and independence in bivariate sine von Mises and wrapped Cauchy distributions
bwc

Density evaluation, sampling, and parameter estimation of the bivariate wrapped Cauchy distribution
bwn

Density evaluation, sampling, and parameter estimation of the bivariate wrapped normal distribution
ridge_distr

Connected component of the toroidal density ridge of a bivariate sine von Mises, bivariate wrapped Cauchy, and bivariate wrapped normal
ridge_curve

Fourier-fitted ridge curve and related utilities
frechet

Fréchet statistics on the torus
bvm

Density evaluation, sampling, and parameter estimation of the bivariate sine von Mises distribution
ridge_pca

Toroidal PCA via density ridges
wind

Texas wind dataset