Klar

Charts / React science and statistics charts / Relationship

PCA biplot

Principal component scores coloured by group with 95% ellipses, variable loading arrows and a scree strip for choosing which components to plot.

React component PCABiplot, data through props. How variables move together: correlation, density and many dimensions at once. Tags: pca, biplot, principal-components, loadings, scree, multivariate, ellipse, chemometrics.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, PCABiplot } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/sci-pca-biplot.json

Usage

<PCABiplot rows={wineRows} variables={wineVariables} groupKey="cultivar" groups={wineGroups} labelKey="id" scale={mode === 'scaled'} height={520} />

Related pca biplot charts