README.md

SparseBiplots

CRAN status

Overview

Sparse Biplots are modern variant of HJ-Biplot which attempts to find sparse loadings, i.e., weight vectors with only a few nonzero values. Introducing a penalty parameter helps improve the interpretation of the model because the axis are formed as a linear combination of only some of the original variables.

This package provides functions to perform the HJ-Biplot (Galindo, 1986) and modifications introducing Ridge, LASSO and Elastic Net penalty:

Installation


* Install *SparseBiplots* from **GitHub** using [devtools](https://github.com/r-lib/devtools):
```{r Install from GitHub}
install.packages("devtools")
devtools::install_github("mitzicubillamontilla/SparseBiplots")

Usage

Parameters

Values

Plot_Biplot parameters

Example

```{r Fit HJ-Biplot} library("SparseBiplots") hj.biplot <- HJBiplot(mtcars)

It fit the HJ-Biplot on the R data `mtcars` returning a list that contains the results of the fiting (`hj_mtcars`). To create the plot use the function `Plot_Biplot` over the list obtained. 

```{r Visualize HJ-Biplot}
Plot_Biplot(hj.biplot, ind.label = TRUE)

References



Try the SparseBiplots package in your browser

Any scripts or data that you put into this service are public.

SparseBiplots documentation built on June 8, 2025, 11:39 a.m.