ternary: Define a ternary composition

Description Usage Arguments Value See Also Examples

View source: R/ternary.R

Description

Create an object of class ternary

Usage

1
ternary(X, x = 1, y = 2, z = 3)

Arguments

X

an object of class compositional OR a matrix or data frame with numerical data

x

string/number or a vector of strings/numbers indicating the variables/indices making up the first subcomposition of the ternary system.

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

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

provenance documentation built on May 5, 2021, 1:06 a.m.