PyBiplots is a python package that performs the classic biplots methods. This methods are GH-Biplot, JK-Biplot and HJ-Biplot.
- Install PyBiplots from Anaconda Cloud:
pip install -i https://pypi.anaconda.org/carlos_t22/simple pybiplots
- Install PyBiplots from GitHub:
git clone https://github.com/carlostorrescubila/PyBiplots
cd PyBiplots
pip install .
PyBiplots supports Python 3.6+ and no longer supports Python 2.
Installation requires numpy, scipy, pandas, matplotlib, seaborn, sklearn and adjustText
## 1. Packages needed
import pybiplots.HJ_Biplot as hj
import statsmodels.api as sm
import matplotlib
## 2. Load mtcars data
mtcars = sm.datasets.get_rdataset('mtcars').data
## 3. Fit Biplot
HJ = hj.fit(mtcars, Transform='Standardize columns')
## 4. Draw Biplot
matplotlib.style.use("seaborn")
HJ.plot(adjust_ind_name=True)
This is a simple example. For detailed examples visit https://github.com/carlostorrescubila/PyBiplots/tree/master/examples