The goal of prinsurf is to construct a principal surface that is two-dimensional and passes through the middle of a \(p\)-dimensional dataset.
You can install the development version of prinsurf from GitHub with:
library(devtools)
::install_github("RaeesaGaney91/prinsurf") devtools
This is a basic example on a simulated data set:
library(prinsurf)
<- principal.surface(X) surface
If you encounter any issues or have questions, please open an issue on the GitHub repository.