Representing multivariate data in a 2D with principle components analysis (PCA) space is just two commands away in #Rstats. The problem with such task made easy in data science is that people use it without understanding it. Last year, I wrote a blog post explaining how to do the math behind PCA and biplots with #Python. https://nextjournal.com/essicolo/principle-component-analysis-and-biplots-in-python #datascience
Principle component analysis and biplots in Python

Before getting myself in data science, something I remember being deeply impressed by was principal component analysis (PCA). The graphical representation of variables and arrows seemed to be pure sorcery. Then I learned the R language as well as PCA basics, and sorcery became poetic mathematics.

Nextjournal