StatFas.com

Ternary Plot Explained: How to Make, Read and Analyze Compositional Data

By StatFas · Updated 2026-11-09

A ternary plot is a triangle in which each point is a mixture of three parts that add up to a constant, such as soil sand, silt and clay, or the three main phyla in a gut microbiome. This guide explains how to read the triangle, why ordinary statistics on proportions can mislead, and how to compare groups with log-ratios and PERMANOVA.

Open the free Ternary Plot GeneratorStep-by-step tutorial (StatFas, SPSS, R, Python)

What is a ternary plot?

A ternary plot (ternary diagram, triangle plot) displays three-part compositions. Each corner stands for 100% of one component and the opposite edge for 0%. A point near a corner is dominated by that component; a point in the middle is an even mixture. The plot is standard for soil texture, mineral and alloy composition, diet or tissue composition, formulation experiments and microbiome fractions.

Because the three shares add to 100%, two numbers determine the third, so the data really have two degrees of freedom. The triangle shows them without distortion.

How to read a ternary plot

Check the axis order and direction (clockwise or anticlockwise) in the figure note, because journals and soil-texture charts differ.

Why compositional data need log-ratios

When parts must add to a constant, an increase in one part forces decreases in others, which creates spurious negative correlations. Ordinary means, correlations and tests on raw shares can therefore mislead (Aitchison, 1986). Compositional data analysis works with ratios between parts. The isometric log-ratio (ilr) transform (Egozcue et al., 2003) turns a three-part composition into two ordinary coordinates, in which Euclidean distance equals the Aitchison distance.

The Ternary Plot Generator computes group centres as closed geometric means and draws confidence ellipses in ilr space and maps them back onto the triangle. Zeros are a problem because log(0) is undefined; replace them with a small value or merge parts before analysis.

Test group differences with PERMANOVA

To ask whether groups differ in composition, run PERMANOVA (Anderson, 2001) on the Aitchison distance. It partitions the variation into between-group and within-group sums of squares, gives a pseudo-F and R² (the share of variation explained by the grouping), and obtains the p-value by permuting group labels. Report the number of permutations. PERMANOVA assumes similar dispersion across groups; a significant result with very different spread may reflect dispersion rather than centre location.

Step by step: make a ternary plot in StatFas

  1. Open the Ternary Plot Generator.
  2. Load the example data (60 invented microbiome samples), paste a table, or upload a CSV, Excel or SPSS file with three non-negative columns and an optional group column. Rows are re-scaled to sum to 100%.
  3. Choose the three component columns (A at the top, B bottom left, C bottom right), the group to colour by, and options such as the compositional centre per group, 95% log-ratio ellipses and grid spacing.
  4. Run the analysis for centres, descriptive statistics and PERMANOVA with APA7 interpretation.
  5. Style the figure, then log in (free) to download it, the tables and a Word report.

The tutorial shows the same plot in SPSS (limited), R, Python and others.

How to report it in APA7

Describe the closing of the data, the transformation, the distance, the test and the permutations. Example wording (illustrative numbers):

Gut microbiome composition (three phyla, closed to 100%) differed among the healthy, IBD and obese groups (Figure 1). A PERMANOVA on Aitchison distance with 9,999 permutations showed a significant effect of group, pseudo-F(2, 57) = 23.84, R² = .46, p < .001.

Common mistakes to avoid

Frequently asked questions

Do my three columns have to add to 100?

No. The generator re-scales each row so that its three parts add to 100% before plotting.

What if I have more than three components?

Combine them into three meaningful groups (for example Firmicutes, Bacteroidetes, other), or use a method for higher-dimensional compositions such as PCA on clr-transformed data.

Can I plot soil texture classes?

Yes, if your sand, silt and clay columns sum to 100%. The generator draws the triangle; add class boundaries in an image editor if you need a named texture chart.

What does R² mean in PERMANOVA?

It is the proportion of total variation in the (Aitchison) distance matrix explained by the grouping, analogous to R² in regression.

Try it now. Run the analysis in your browser with the free Ternary Plot Generator. No account is needed to analyze; a free StatFas account is needed only to download figures, tables and the Word report.

Related tools, guides and tutorials

References

  1. Aitchison, J. (1986). The statistical analysis of compositional data. Chapman & Hall.
  2. American Psychological Association. (2020). Publication manual of the American Psychological Association (7th ed.).
  3. Anderson, M. J. (2001). A new method for non-parametric multivariate analysis of variance. Austral Ecology, 26(1), 32–46.
  4. Egozcue, J. J., Pawlowsky-Glahn, V., Mateu-Figueras, G., & Barceló-Vidal, C. (2003). Isometric logratio transformations for compositional data analysis. Mathematical Geology, 35(3), 279–300.