princurve

Fits a Principal Curve in Arbitrary Dimension ⤵

https://github.com/rcannood/princurve

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Fits a Principal Curve in Arbitrary Dimension ⤵

Basic Info
Statistics
  • Stars: 44
  • Watchers: 5
  • Forks: 6
  • Open Issues: 1
  • Releases: 9
Created over 8 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog

README.Rmd

---
output:
  github_document:
    html_preview: true
editor_options: 
  chunk_output_type: console
---



```{r setup1, include=FALSE}
knitr::opts_chunk$set(fig.path = "man/figures/README_", warning = FALSE, message = FALSE, error = FALSE, echo = TRUE)
set.seed(1)
library(tidyverse)
```

# princurve


[![CRAN Status](https://www.r-pkg.org/badges/version/princurve)](https://cran.r-project.org/package=princurve)
[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/princurve)](https://cran.r-project.org/package=princurve)
[![DOI](https://zenodo.org/badge/125849601.svg)](https://zenodo.org/badge/latestdoi/125849601)  
[![R-CMD-check](https://github.com/rcannood/princurve/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rcannood/princurve/actions/workflows/R-CMD-check.yaml)

  
Fitting a principal curve to a data matrix in arbitrary dimensions.
A principal curve is a smooth curve passing through the middle of a multidimensional dataset. 
This package is an R/C++ reimplementation of the S/Fortran code provided by Trevor Hastie, 
with multiple performance tweaks.

## Example
Usage of princurve is demonstrated with a toy dataset.
```{r example}
t <- runif(100, -1, 1)
x <- cbind(t, t ^ 2) + rnorm(200, sd = 0.05)
colnames(x) <- c("dim1", "dim2")

plot(x)
```

A principal curve can be fit to the data as follows:
```{r princurve}
library(princurve)
fit <- principal_curve(x)
plot(fit); whiskers(x, fit$s, col = "gray")
```

See `?principal_curve` for more information on how to use the `princurve` package.

## Latest changes
Check out `news(package = "princurve")` or [NEWS.md](NEWS.md) for a full list of changes.



```{r news, results='asis', echo=FALSE}
cat(dynutils::recent_news())
```

## References

Hastie, T. and Stuetzle, W., [Principal Curves](https://www.jstor.org/stable/2289936), JASA, Vol. 84, No. 406 (Jun., 1989), pp. 502-516, DOI: [10.2307/2289936](https://doi.org/10.2307/2289936) ([PDF](https://web.stanford.edu/~hastie/Papers/principalcurves.pdf))

Owner

  • Name: Robrecht Cannoodt
  • Login: rcannood
  • Kind: user
  • Location: Ghent, Belgium
  • Company: Data Intuitive

Data science engineer at Data Intuitive.

GitHub Events

Total
  • Watch event: 3
  • Delete event: 2
  • Push event: 3
  • Create event: 2
Last Year
  • Watch event: 3
  • Delete event: 2
  • Push event: 3
  • Create event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 261
  • Total Committers: 2
  • Avg Commits per committer: 130.5
  • Development Distribution Score (DDS): 0.019
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Robrecht Cannoodt r****d@g****m 256
hb hb@a****g 5
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 10
  • Total pull requests: 27
  • Average time to close issues: 17 days
  • Average time to close pull requests: about 6 hours
  • Total issue authors: 7
  • Total pull request authors: 2
  • Average comments per issue: 3.2
  • Average comments per pull request: 0.93
  • Merged pull requests: 27
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • HenrikBengtsson (4)
  • tasmiaorni (1)
  • sriganeshms (1)
  • szcf-weiya (1)
  • kstreet13 (1)
  • hsiaoyi0504 (1)
  • rcannood (1)
Pull Request Authors
  • rcannood (25)
  • HenrikBengtsson (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 2,633 last-month
  • Total docker downloads: 133,271
  • Total dependent packages: 12
    (may contain duplicates)
  • Total dependent repositories: 23
    (may contain duplicates)
  • Total versions: 30
  • Total maintainers: 1
cran.r-project.org: princurve

Fit a Principal Curve in Arbitrary Dimension

  • Versions: 24
  • Dependent Packages: 10
  • Dependent Repositories: 23
  • Downloads: 2,633 Last month
  • Docker Downloads: 133,271
Rankings
Dependent packages count: 5.3%
Dependent repos count: 5.7%
Stargazers count: 8.4%
Downloads: 8.9%
Forks count: 9.6%
Average: 10.5%
Docker downloads count: 24.9%
Maintainers (1)
Last synced: 11 months ago
conda-forge.org: r-princurve
  • Versions: 6
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent packages count: 19.5%
Dependent repos count: 34.0%
Average: 34.7%
Stargazers count: 39.4%
Forks count: 46.0%
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.0 depends
  • Rcpp * imports
  • grDevices * imports
  • graphics * imports
  • stats * imports
  • devtools * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite