PCA Plot Maker

Figran

Paste a data table or PC scores and get a publication-ready PCA plot.

  • Score plot, biplot and scree plot
  • From raw data or your scores
  • Free SVG and 300 DPI PNG

PCA calculator

The PCA calculator runs in your browser.

Data
Samples are
PCA settings
Transform
Variables
Palette
Plot
−4−20246−4−2024PC1 (68.8%)PC2 (19.3%)AdelieGentooChinstrap
Export ▾
PCEigenvalue% explainedCumulative %
PC12.75468.868.8
PC20.77319.388.2
PC30.3659.197.3
PC40.1082.7100.0

PCA plot examples

Explore real datasets and load a PCA plot example to make it your own.

−4−20246−4−2024PC1 (68.8%)PC2 (19.3%)AdelieGentooChinstrap

PCA score plot with group ellipses

Compare three penguin species using four body measurements.

Source: Palmer penguins (Gorman et al., 2014)

−4−20246−4−2024Sepal widthSepal lengthPetal lengthPetal widthPC1 (73.0%)PC2 (22.9%)setosaversicolorvirginica

Biplot of iris measurements

See how four flower measurements relate to species.

Source: R iris data

−4−2024−4−2024Urban populationMurderAssaultRapeVermontNorth DakotaFloridaNevadaCaliforniaMississippiWest VirginiaNorth CarolinaMaineNew HampshirePC1 (62.0%)PC2 (24.7%)

PCA biplot with sample labels

Compare state-level arrest statistics with labeled observations.

Source: R USArrests data

020406080100PC1PC3PC5PC7PC9PC11PC13Principal componentExplained variance (%)

Scree plot with cumulative variance

Examine the variance explained by wine measurements.

Source: UCI Wine dataset

−1.5−1−0.500.511.5−1.5−1−0.500.511.5Color intensityalcoholashmagnesiumMalic acidprolineTotal phenolsflavanoidsOD280/OD315 of diluted wineshuePC1 (36.2%)PC2 (19.2%)

Correlation circle (loadings plot)

Explore associations among standardized wine measurements.

Source: UCI Wine dataset

−60−40−200204060−40−2002040PC1 (20.2%)PC2 (10.3%)CNSRENALBREASTNSCLCOtherOVARIANMELANOMALEUKEMIACOLON

Gene expression PCA

Compare cancer cell lines using the 500 most variable genes.

Source: ISLR2 NCI-60 dataset

−60−40−200204060−40−2002040PC1 (20.2%)PC3 (7.4%)CNSRENALBREASTNSCLCOtherOVARIANMELANOMALEUKEMIACOLON

Scores from R prcomp

Plot precomputed cancer cell line coordinates on PC1 and PC3.

Source: ISLR2 NCI-60 dataset

0246183795UMAP1UMAP20123456789

UMAP plot of handwritten digits

Plot any 2-D embedding from scores, including 1,797 handwritten digits.

Source: UCI digits; UMAP (seed 42)

How to make a PCA plot

Make a principal component analysis plot from a table in four steps.

  1. 1Enter data

    Paste a sample-by-variable table or existing coordinates for your PCA plot.

  2. 2Set PCA options

    Choose sample direction and whether to scale variables.

  3. 3Choose a plot

    Select scores, a biplot or a scree plot.

  4. 4Download

    Save PNG or SVG and take the results and figure legend with you.

How to read a PCA plot

A PCA plot summarizes patterns in many variables on a small number of axes.

Score plot

To interpret a PCA plot, start with the points and axis percentages. Each point represents a sample, and the percentages show how much total variation each component explains. Samples close together have similar profiles in the displayed components; a distant point may deserve a closer look.

Colors and ellipses help compare groups, but an ellipse describes spread rather than proving that groups differ.

  1. 1Axis percentages
  2. 2Group separation
  3. 3Potential outlier
  4. 4Variable arrow

Biplot and loadings plot

Arrows show how variables relate to the displayed components. Long arrows contribute strongly in this view, and arrows pointing in similar directions indicate similar patterns. In a scaled PCA loadings plot, the correlation circle helps interpret variable correlations.

Axis aspect ratio matters when comparing directions and distances (Nguyen and Holmes, 2019).

−4−20246−4−2024Sepal widthSepal lengthPetal lengthPetal widthPC1 (73.0%)PC2 (22.9%)setosaversicolorvirginica1234
Biplot of the iris data: points are samples and arrows show variable directions.

Scree plot and explained variance

Use the shape of the curve and the cumulative total together when choosing components.

A scree plot orders components by explained variance. An elbow marks where the gain from further components starts to level off, but the choice depends on the analysis and should not rely on an automatic cutoff (Cattell, 1966).

For standardized variables an eigenvalue of one is sometimes used as a reference; it is not a universal decision rule. The cumulative line shows how much variation the displayed components capture together.

020406080100PC1PC3PC5PC7PC9PC11PC13Principal componentExplained variance (%)
Wine measurements: individual percentages and cumulative explained variance.
PC% explainedCumulative %
PC136.2%36.2%
PC219.2%55.4%
PC311.1%66.5%
PC47.1%73.6%

PCA plot FAQ

How do I make a PCA plot?

Paste a sample-by-variable table into Data table to calculate PCA, or choose Scores and paste coordinates calculated elsewhere. Select a plot and download the result.

Should I scale my data before PCA?

Scale variables when their units or magnitudes differ. When variables share units and their variances are meaningful, such as variance-stabilized expression values, leaving them unscaled may be appropriate.

What does the percentage on each PCA axis mean?

It is the proportion of total variance explained by that principal component. The first component explains the most variation, followed by the second.

How many principal components should I keep?

Use the scree plot and cumulative explained variance alongside the purpose of your analysis. An elbow can suggest a useful range, but there is no universal threshold.

What is a biplot, and how do I read the arrows?

A PCA biplot combines sample scores and variable directions. Arrows point toward increasing values; their direction and length show their relationship to the displayed components. The figure legend records the arrow scaling used here.

Why are my PCA signs flipped compared with R or Python?

Principal component signs are arbitrary, so a mirrored axis represents the same solution. Use Flip PC1 or Flip PC2 to match a reference figure.

Can I plot UMAP or t-SNE coordinates?

Yes. Paste existing coordinates in Scores mode. UMAP and t-SNE are different from PCA: their axes do not have PCA explained-variance percentages, and distances require careful interpretation.

Is my data uploaded? What can I download?

Your data stays in your browser. Download SVG, 300 DPI PNG and results CSV files or copy a figure legend, without signing in.

Make your PCA plot

Turn your data into a PCA plot for your next paper or presentation.

Make your PCA plot