Package: ridgetorus Type: Package Title: PCA on the Torus via Density Ridges Version: 1.0.3 Date: 2025-07-27 Authors@R: c( person(given = "Eduardo", family = "García-Portugués", role = c("aut", "cre"), email = "edgarcia@est-econ.uc3m.es", comment = c(ORCID = "0000-0002-9224-4111")), person(given = "Arturo", family = "Prieto-Tirado", role = "aut", comment = c(ORCID = "0000-0003-0193-2988")) ) 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) . License: GPL-3 LazyData: true Depends: R (>= 3.5.0), Rcpp Imports: rootSolve, sdetorus, sphunif, circular Suggests: BAMBI, covr, DirStats, GGally, ggplot2, knitr, markdown, mvtnorm, numDeriv, rmarkdown, testthat, viridisLite LinkingTo: Rcpp, RcppArmadillo URL: https://github.com/egarpor/ridgetorus BugReports: https://github.com/egarpor/ridgetorus/issues Encoding: UTF-8 RoxygenNote: 7.3.2 VignetteBuilder: knitr Config/testthat/edition: 3 Config/pak/sysreqs: libgsl0-dev Repository: https://egarpor.r-universe.dev Date/Publication: 2025-07-27 17:05:04 UTC RemoteUrl: https://github.com/egarpor/ridgetorus RemoteRef: HEAD RemoteSha: 9e1f9b5104f0af26e972e2aeec02c9fe11419c34 NeedsCompilation: yes Packaged: 2026-07-02 09:50:30 UTC; root Author: Eduardo García-Portugués [aut, cre] (ORCID: ), Arturo Prieto-Tirado [aut] (ORCID: ) Maintainer: Eduardo García-Portugués