Function to carry out the transformation into 2D space for triplot, trilines etc.
latin1
tritrafo(x, y =NULL, z =NULL, check =TRUE, tolerance =0.0001)
Arguments
x: Vector of fractions of first component OR 3-column matrix containing all three components (omitting y and z) OR 3-element vector (for all three components, omitting y and z).
y: (optional) vector of fractions of second component.
z: (optional) vector of fractions of third component.
check: if TRUE, it is checked whether x+y+z=1 and x,y,z>=0 for all cases.
tolerance: tolerance for above sum check.
Details
Projects the mixture given by x, y, and z
with x, y, z between one and zero and x+y+z=1 into a two-dimensional space.
For further details see triplot.
Returns
A matrix with two columns corresponding to the two dimensions.