Learn R Programming

provenance (version 1.3)

ternary: Define a ternary composition

Description

Create an object of class ternary

Usage

ternary(X, x = NULL, y = NULL, z = NULL)

Arguments

X
an object of class compositional
x
string or a vector of strings indicating the variables making up the first subcomposition of the ternary system. If omitted, the first component of X is used instead.
y
second (set of) variables
z
third (set of) variables

Value

  • an object of class ternary, i.e. a list containing:

    x: a three column matrix (or vector) of ternary compositions.

    and (if X is of class SRDcorrected)

    restoration: a list of intermediate ternary compositions inherited from the SRD correction

See Also

restore

Examples

Run this code
data(Namib)
tern <- ternary(Namib$PT,c('Q'),c('KF','P'),c('Lm','Lv','Ls'))
plot(tern,type="QFL")

Run the code above in your browser using DataLab