--- Advertisement ---

 A ternary plot, ternary graph, triangle plot, simplex plot, Gibbs triangle or de Finetti diagram 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. It is used in physical chemistry, petrology, mineralogy, metallurgy, and other physical sciences to show the compositions of systems composed of three species. In population genetics, it is often called a de Finetti diagram. In game theory, it is often called a simplex plot.Approximate colours of Ag–Au–Cu alloys in jewellery makingIn a ternary plot, the proportions of the three variables a, b, and c must sum to some constant, K. Usually, this constant is represented as 1.0 or 100%. Because a + b + c = K 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, c must be equal to K − a − b. Because the three proportions cannot vary independently—there are only two degrees of freedom—it is possible to graph the combinations of all three variables in only two dimensions.Contents1 Reading values on the ternary plot 2 Derivation from Cartesian coordinates 3 Plotting a ternary plot 4 Example4.1 Plotting the points5 Software 6 References 7 See alsoReading values on the ternary plot The advantage of using a ternary plot for depicting chemical compositions 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. Every point on a ternary plot represents a different composition of the three components. A parallel to a side of the triangle is the locus of points representing systems with constant chemical composition in the component situated in the vertex opposed to the side. There are three common methods used to determine the ratios of the three species in the composition. The first method is an estimation based upon the phase diagram grid. The concentration of each species is 100% (pure phase) in each corner of the triangle and 0% at the line opposite it. The percentage of a specific species decreases linearly with increasing distance from this corner, as seen in figures 3–8. By drawing parallel lines at regular intervals between the zero line and the corner (as seen in the images), fine divisions can be established for easy estimation of the content of a species. For a given point, the fraction of each of the three materials in the composition can be determined by the first. For phase diagrams that do not possess grid lines, the easiest way to determine the composition is to set the altitude of the triangle to 100% and determine the shortest distances from the point of interest to each of the three sides. By Viviani's theorem, the distances (the ratios of the distances to the total height of 100%) give the content of each of the species, as shown in figure 1. The third method is based upon a larger number of measurements, but does not require the drawing of perpendicular 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. Ratios can then be determined by dividing these segments by the entire corresponding line as shown in the figure 2. (The sum of the ratios should add to 1).Figure 1. Altitude methodFigure 2. Intersection methodFigure 3. An example ternary diagram, without any points plotted.Figure 4. An example ternary diagram, showing increments along the first axis.Figure 5. An example ternary diagram, showing increments along the second axis.Figure 6. An example ternary diagram, showing increments along the third axis.Figure 7. Empty ternary plotFigure 8. Indication of how the three axes work.Derivation from Cartesian coordinatesDerivation of a ternary plot from Cartesian coordinatesFigure (1) shows an oblique projection of point P(a,b,c) in a 3-dimensional Cartesian space with axes a, b and c, respectively. If a + b + c = K (a positive constant), P is restricted to a plane containing A(K,0,0), B(0,K,0) and C(0,0,K). If a, b and c each cannot be negative, P is restricted to the triangle bounded by A, B and C, as in (2). In (3), the axes are rotated to give an isometric view. The triangle, viewed face-on, appears equilateral. In (4), the distances of P from lines BC, AC and AB are denoted by a′, b′ and c′, respectively. For any line l = s + t n̂ in vector form (n̂ is a unit vector) and a point p, the perpendicular distance from p to l is ‖ ( s − p ) − ( ( s − p ) ⋅ n ^ ) n ^ ‖ . displaystyle left(mathbf s -mathbf p )- bigl ( (mathbf s -mathbf p )cdot mathbf hat n bigr ) mathbf hat n right,. In this case, point P is at p = ( a b c ) . displaystyle mathbf p = begin pmatrix a\b\cend pmatrix ,. Line BC has s = ( 0 K 0 ) and n ^ = ( 0 K 0 ) − ( 0 0 K ) ‖ ( 0 K 0 ) − ( 0 0 K ) ‖ = ( 0 K − K ) 0 2 + K 2 + ( − K ) 2 = ( 0 1 2 − 1 2 ) . displaystyle mathbf s = begin pmatrix 0\K\0end pmatrix quad text and quad mathbf hat n = frac begin pmatrix 0\K\0end pmatrix - begin pmatrix 0\0\Kend pmatrix left begin pmatrix 0\K\0end pmatrix - begin pmatrix 0\0\Kend pmatrix right = frac begin pmatrix 0\K\-Kend pmatrix sqrt 0^ 2 +K^ 2 + (-K) ^ 2 = begin pmatrix 0\ frac 1 sqrt 2 \- frac 1 sqrt 2 end pmatrix ,. Using the perpendicular distance formula, a ′ = ‖ ( − a K − b − c ) − ( ( − a K − b − c ) ⋅ ( 0 1 2 − 1 2 ) ) ( 0 1 2 − 1 2 ) ‖ = ‖ ( − a K − b − c ) − ( 0 + K − b 2 + c 2 ) ( 0 1 2 − 1 2 ) ‖ = ‖ ( − a K − b − K − b + c 2 − c + K − b + c 2 ) ‖ = ‖ ( − a K − b − c 2 K − b − c 2 ) ‖ = ( − a ) 2 + ( K − b − c 2 ) 2 + ( K − b − c 2 ) 2 = a 2 + ( K − b − c ) 2 2 . displaystyle begin aligned a'&=left begin pmatrix -a\K-b\-cend pmatrix -left( begin pmatrix -a\K-b\-cend pmatrix cdot begin pmatrix 0\ frac 1 sqrt 2 \- frac 1 sqrt 2 end pmatrix right) begin pmatrix 0\ frac 1 sqrt 2 \- frac 1 sqrt 2 end pmatrix right\[10px]&=left begin pmatrix -a\K-b\-cend pmatrix -left(0+ frac K-b sqrt 2 + frac c sqrt 2 right) begin pmatrix 0\ frac 1 sqrt 2 \- frac 1 sqrt 2 end pmatrix right\[10px]&=left begin pmatrix -a\K-b- frac K-b+c 2 \-c+ frac K-b+c 2 end pmatrix right=left begin pmatrix -a\ frac K-b-c 2 \ frac K-b-c 2 end pmatrix right\[10px]&= sqrt (-a) ^ 2 + left( frac K-b-c 2 right) ^ 2 + left( frac K-b-c 2 right) ^ 2 = sqrt a^ 2 + frac (K-b-c) ^ 2 2 ,.end aligned Substituting K = a + b + c, a ′ = a 2 + ( a + b + c − b − c ) 2 2 = a 2 + a 2 2 = a 3 2 . displaystyle a'= sqrt a^ 2 + frac (a+b+c-b-c) ^ 2 2 = sqrt a^ 2 + frac a^ 2 2 =a sqrt frac 3 2 ,. Similar calculation on lines AC and AB gives b ′ = b 3 2 and c ′ = c 3 2 . displaystyle b'=b sqrt frac 3 2 quad text and quad c'=c sqrt frac 3 2 ,. This shows that the distance of the point from the respective lines is linearly proportional to the original values a, b and c. Plotting a ternary plot Cartesian coordinates are useful for plotting points in the triangle. Consider an equilateral ternary plot where a = 100% is placed at (x,y) = (0,0) and b = 100% at (1,0). Then c = 100% is (1/2,√3/2), and the triple (a,b,c) is ( 1 2 ⋅ 2 b + c a + b + c , 3 2 ⋅ c a + b + c ) . displaystyle left( frac 1 2 cdot frac 2b+c a+b+c , frac sqrt 3 2 cdot frac c a+b+c right),. Example This example shows how this works for a hypothetical set of three soil samples:Sample number Organic matter Clay Sand NotesSample 1 80% 10% 10% Because organic matter and clay make up 90% of this sample, the proportion of sand must be 10%.Sample 2 50% 40% 10% The proportion of sand is 10% in this sample too, but the proportions of organic matter and clay are different.Sample 3 10% 40% 50% This sample has the same proportion of clay as in Sample 2 does, but because it has a smaller proportion of organic matter, the proportion of sand must be larger, because all samples' proportions must sum to 100%.Plotting the pointsPlotting a point: finding the first intersection.Plotting a point: finding the second intersection.Plotting a point: the "third" intersection is already found, as it is mathematically dependent on the first two.Showing points and intersection lines.Showing only the points.Software Here is a list of software that help enable the creation of ternary plotsJMP Origin R packages:Ternary, which employs the native plot functions; Plot-ly, which uses a bespoke suite of plotting functions; vcd, which contains the function ternaryplot; ggtern, an extension to ggplot2.Statgraphics Veusz ternary, a python library for ternary plotting ternplot for Matlab PGFplots for LaTeXReferences^ Karl Tuyls, "An evolutionary game-theoretic analysis of poker strategies", Entertainment Computing January 2009 doi:10.1016/j.entcom.2009.09.002, p. 9 ^ Vaughan, Will (September 5, 2010). "Ternary plots". Retrieved September 7, 2010. See alsoBarycentric coordinates (mathematics) Types of ternary plots:Flammability diagram QFL diagram Jensen cation plot Chromaticity diagramTrilemma Project triangle Triangular theory of love Apparent molar propertyWikimedia Commons has media related

.