MaxHalford / prince

:crown: Multivariate exploratory data analysis in Python — PCA, CA, MCA, MFA, FAMD, GPA

Home Page:https://maxhalford.github.io/prince

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature idea: biplot

normanius opened this issue · comments

Have you considered to enhance this package by biplots, as discussed in this SO thread?

Also, I see some potential overlap with the PCA package, though prince appears fitter with regard to the methods. Also, I'm not totally convinced by the API design of the PCA package. Still, maybe there's potential to team up.

I'm dropping these ideas here for further discussion.

Hey @normanius 👋

First of all, thanks your activity. It's motivating :)

I definitely agree that biplots are a worthy addition. It's on my roadmap, I just haven't allocated time to it yet. But maybe somebody would like to contribute.

I wasn't aware of the PCA package. It seems to have strong viz capabilities. I will reach out to the package maintainer to see if he wants to consider a merge. I think that's what would be best for community.

Just want to mention I've update the PCA.plot method so that the column coordinates are scaled to the scale of the row coordinates. This effectively results in the biplot many people are used to. The only difference is that there's no arrows, because those are poorly supported in Altair. But one could argue those clutter the chart.

Screenshot 2023-06-10 at 19 57 05

I've contacted the author of the PCA plot, but there hasn't been much enthusiasm.