PCA score plot with group ellipses
Compare three penguin species using four body measurements.
Source: Palmer penguins (Gorman et al., 2014)
Paste a data table or PC scores and get a publication-ready PCA plot.
Explore real datasets and load a PCA plot example to make it your own.
Compare three penguin species using four body measurements.
Source: Palmer penguins (Gorman et al., 2014)
See how four flower measurements relate to species.
Source: R iris data
Compare state-level arrest statistics with labeled observations.
Source: R USArrests data
Examine the variance explained by wine measurements.
Source: UCI Wine dataset
Explore associations among standardized wine measurements.
Source: UCI Wine dataset
Compare cancer cell lines using the 500 most variable genes.
Source: ISLR2 NCI-60 dataset
Plot precomputed cancer cell line coordinates on PC1 and PC3.
Source: ISLR2 NCI-60 dataset
Plot any 2-D embedding from scores, including 1,797 handwritten digits.
Source: UCI digits; UMAP (seed 42)
Make a principal component analysis plot from a table in four steps.
Paste a sample-by-variable table or existing coordinates for your PCA plot.
Choose sample direction and whether to scale variables.
Select scores, a biplot or a scree plot.
Save PNG or SVG and take the results and figure legend with you.
A PCA plot summarizes patterns in many variables on a small number of axes.
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.
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).
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.
| PC | % explained | Cumulative % |
|---|---|---|
| PC1 | 36.2% | 36.2% |
| PC2 | 19.2% | 55.4% |
| PC3 | 11.1% | 66.5% |
| PC4 | 7.1% | 73.6% |
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.
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.
It is the proportion of total variance explained by that principal component. The first component explains the most variation, followed by the second.
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.
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.
Principal component signs are arbitrary, so a mirrored axis represents the same solution. Use Flip PC1 or Flip PC2 to match a reference figure.
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.
Your data stays in your browser. Download SVG, 300 DPI PNG and results CSV files or copy a figure legend, without signing in.
Turn your data into a PCA plot for your next paper or presentation.
Make your PCA plot