
A ternary plot, ternary graph, triangle plot, simplex plot, or Gibbs triangle is a
barycentric plot on three variables which
sum to a constant. It graphically depicts the ratios of the three variables as positions in an
equilateral triangle
An equilateral triangle is a triangle in which all three sides have the same length, and all three angles are equal. Because of these properties, the equilateral triangle is a regular polygon, occasionally known as the regular triangle. It is the ...
. It is used in
physical chemistry
Physical chemistry is the study of macroscopic and microscopic phenomena in chemical systems in terms of the principles, practices, and concepts of physics such as motion, energy, force, time, thermodynamics, quantum chemistry, statistical mech ...
,
petrology
Petrology () is the branch of geology that studies rocks, their mineralogy, composition, texture, structure and the conditions under which they form. Petrology has three subdivisions: igneous, metamorphic, and sedimentary petrology. Igneous ...
,
mineralogy
Mineralogy is a subject of geology specializing in the scientific study of the chemistry, crystal structure, and physical (including optical mineralogy, optical) properties of minerals and mineralized artifact (archaeology), artifacts. Specific s ...
,
metallurgy
Metallurgy is a domain of materials science and engineering that studies the physical and chemical behavior of metallic elements, their inter-metallic compounds, and their mixtures, which are known as alloys.
Metallurgy encompasses both the ...
, and other physical sciences to show the compositions of systems composed of three species. Ternary plots are tools for analyzing
compositional data in the three-dimensional case.
In
population genetics
Population genetics is a subfield of genetics that deals with genetic differences within and among populations, and is a part of evolutionary biology. Studies in this branch of biology examine such phenomena as Adaptation (biology), adaptation, s ...
, a triangle plot of genotype frequencies is called a
de Finetti diagram. In
game theory
Game theory is the study of mathematical models of strategic interactions. It has applications in many fields of social science, and is used extensively in economics, logic, systems science and computer science. Initially, game theory addressed ...
and
convex optimization
Convex optimization is a subfield of mathematical optimization that studies the problem of minimizing convex functions over convex sets (or, equivalently, maximizing concave functions over convex sets). Many classes of convex optimization problems ...
,
[Boyd, S. and Vandenberghe, L., 2004. Convex optimization. Cambridge university press.] it is often called a
simplex
In geometry, a simplex (plural: simplexes or simplices) is a generalization of the notion of a triangle or tetrahedron to arbitrary dimensions. The simplex is so-named because it represents the simplest possible polytope in any given dimension. ...
plot.
In a ternary plot, the values of the three variables , , and must sum to some constant, . Usually, this constant is represented as 1.0 or 100%. Because for all substances being graphed, any one variable is not independent of the others, so only two variables must be known to find a sample's point on the graph: for instance, must be equal to . Because the three numerical values cannot vary independently—there are only two
degrees of freedom
In many scientific fields, the degrees of freedom of a system is the number of parameters of the system that may vary independently. For example, a point in the plane has two degrees of freedom for translation: its two coordinates; a non-infinite ...
—it is possible to graph the combinations of all three variables in only two dimensions.
The advantage of using a ternary plot for depicting
chemical composition
A chemical composition specifies the identity, arrangement, and ratio of the chemical elements making up a compound by way of chemical and atomic bonds.
Chemical formulas can be used to describe the relative amounts of elements present in a com ...
s is that three variables can be conveniently plotted in a two-dimensional graph. Ternary plots can also be used to create
phase diagrams by outlining the composition regions on the plot where different phases exist.
The values of a point on a ternary plot correspond (up to a constant) to its
trilinear coordinates or
barycentric coordinates.
Reading values on a ternary plot
There are three equivalent methods that can be used to determine the values of a point on the plot:
# Parallel line or grid method. The first method is to use a diagram grid consisting of lines parallel to the triangle edges. A parallel to a side of the triangle is the locus of points constant in the component situated in the vertex opposed to the side. Each component is 100% in a corner of the triangle and 0% at the edge opposite it, decreasing linearly with increasing distance (perpendicular to the opposite edge) from this corner. By drawing parallel lines at regular intervals between the zero line and the corner, fine divisions can be established for easy estimation.
# Perpendicular line or altitude method. For diagrams that do not possess grid lines, the easiest way to determine the values is to determine the shortest (i.e. perpendicular) distances from the point of interest to each of the three sides. By
Viviani's theorem
Viviani's theorem, named after Vincenzo Viviani, states that the sum of the shortest distances from ''any'' interior point to the sides of an equilateral triangle equals the length of the triangle's altitude. It is a theorem commonly employed in ...
, the distances (or the ratios of the distances to the
triangle height) give the value of each component.
# Corner line or intersection method. The third method does not require the drawing of perpendicular or parallel lines. Straight lines are drawn from each corner, through the point of interest, to the opposite side of the triangle. The lengths of these lines, as well as the lengths of the segments between the point and the corresponding sides, are measured individually. The ratio of the measured lines then gives the component value as a fraction of 100%.
A displacement along a parallel line (grid line) preserves the sum of two values, while motion along a perpendicular line increases (or decreases) the two values an equal amount, each half of the decrease (increase) of the third value. Motion along a line through a corner preserves the ratio of the other two values.
File:HowToCalculatePercentCompositions Altitude Method.svg, Figure 1. Altitude method
File:HowToCalculate%Compositions Intersection Method.gif, Figure 2. Intersection method
File:Ternary.example.1.svg, Figure 3. An example ternary diagram, without any points plotted.
File:Ternary plot example, constant lines horizontal.svg, Figure 4. An example ternary diagram, showing increments along the first axis.
File:Ternary plot example, constant lines parallel to the right.svg, Figure 5. An example ternary diagram, showing increments along the second axis.
File:Ternary plot example, constant lines parallel to the left.svg, Figure 6. An example ternary diagram, showing increments along the third axis.
File:Blank ternary plot.svg, Figure 7. Empty ternary plot
File:Ternary plot.svg, Figure 8. Indication of how the three axes work.
File:Triangle Plot - Major grid lines.svg, Unlabeled triangle plot with major grid lines
File:Triangle Plot - Major and minor grid lines.svg, Unlabeled triangle plot with major and minor grid lines
Derivation from Cartesian coordinates
:
Figure (1) shows an
oblique projection of point in a 3-dimensional
Cartesian space with axes , and , respectively.
If (a positive constant), is restricted to a plane containing , and . If , and each cannot be negative, is restricted to the triangle bounded by , and , as in (2).
In (3), the axes are rotated to give an
isometric view. The triangle, viewed face-on, appears
equilateral
An equilateral triangle is a triangle in which all three sides have the same length, and all three angles are equal. Because of these properties, the equilateral triangle is a regular polygon, occasionally known as the regular triangle. It is the ...
.
In (4), the distances of from lines , and are denoted by , and , respectively.
For any line in vector form ( is a unit vector) and a point , the
perpendicular distance
In geometry, the perpendicular distance between two objects is the distance from one to the other, measured along a line that is perpendicular to one or both.
The distance from a point to a line is the distance to the nearest point on that lin ...
from to is
:
In this case, point is at
:
Line has
:
Using the perpendicular distance formula,
:
Substituting ,
:
Similar calculation on lines and gives
:
This shows that the distance of the point from the respective lines is linearly proportional to the original values , and .
Plotting a ternary plot
Cartesian coordinates
In geometry, a Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called ''coordinates'', which are the signed distances to the point from two fixed perpendicular o ...
are useful for plotting points in the triangle. Consider an equilateral ternary plot where is placed at and at . Then is
and the triple is
:
Example

This example shows how this works for a hypothetical set of three soil samples:
:
Plotting the points
File:SoilTexture USDA.svg, lang=aa, Plotting Sample 1 (step 1):
Find the 50% clay line
File:SoilTexture USDA.svg, lang=ba, Plotting Sample 1 (step 2):
Find the 20% silt line
File:SoilTexture USDA.svg, lang=ca, Plotting Sample 1 (step 3):
Being dependent on the first two, the intersect is on the 30% sand line
File:SoilTexture USDA.svg, lang=da, Plotting all the samples
File:Ternary triangle plot of soil types sand clay and silt.svg, Ternary triangle plot of soil types sand clay and silt programmed with Mathematica
List of notable ternary diagrams
*
Chromaticity diagram
*
de Finetti diagram
*
Dalitz plot
*
Flammability diagram
*
Jensen cation plot
*
Piper diagram
A Piper diagram is a graphic procedure proposed by Arthur Maine Piper, Arthur M. Piper in 1944 for presenting water chemistry data to help in understanding the sources of the dissolved constituent salts in water. This procedure is based on the pre ...
, used in hydrochemistry
* UIGS Classification diagram for
Ultramafic rock
* USDA
Soil texture
Soil texture is a soil classification, classification instrument used both in the field and laboratory to determine soil classes based on their physical texture. Soil texture can be determined using qualitative methods such as texture by feel, and ...
diagram by particle sizes
See also
*
Apparent molar property
*
Viviani's theorem
Viviani's theorem, named after Vincenzo Viviani, states that the sum of the shortest distances from ''any'' interior point to the sides of an equilateral triangle equals the length of the triangle's altitude. It is a theorem commonly employed in ...
*
Barycentric coordinates (mathematics)
*
Compositional data
*
List of information graphics software
**
Earth sciences graphics software
{{More citations needed, date=August 2011
Earth sciences graphics software is a plotting and image processing software used in atmospheric sciences, meteorology, climatology, oceanography and other Earth science
Earth science or geoscience inclu ...
**
IGOR Pro
IGOR Pro is a scientific data analysis software, numerical computing environment and programming language that runs on Windows or Mac operating systems. It is developed by WaveMetrics Inc., and was originally aimed at time series analysis, but h ...
**
Origin (data analysis software)
Origin is a proprietary computer program for interactive Plot (graphics), scientific graphing and data analysis. It is produced by OriginLab Corporation, and runs on Microsoft Windows. It has inspired several Cross-platform, platform-independen ...
**
R has a dedicated package
ternary' maintained on the Comprehensive R Archive Network (
CRAN)
**
Sigmaplot
*
Project triangle
*
Trilemma
References
External links
*
*
*
*
{{Chemical solutions
Diagrams
Triangles