Ternary / Cartesian Transformation
Functions to transform data from the ternary to cartesian spaces and vice-versa.
tlr2xy(data, coord, ..., inverse = FALSE, scale = TRUE, drop = FALSE) xy2tlr(data, coord, ..., inverse = FALSE, scale = TRUE)
data |
|
coord |
Coordinate system object, inheriting the |
... |
not used |
inverse |
logical if we are doing a forward (FALSE) or reverse (TRUE) transformation |
scale |
logical as to whether the transformed coordinates are scaled (or reverse scaled in the case of inverse transformation) according to the training routine defined in the coordinate system. |
drop |
drop all non columns which are not involved in the transformation |
tlr2xy
transforms from the ternary to cartesian spaces, an inverse transformation
transforms between cartesian to ternary spaces
Nicholas Hamilton
data(Feldspar) dfm = plyr::rename(Feldspar,c("Ab"="x","An"="y","Or"="z")) crd = coord_tern() fwd = tlr2xy(dfm,crd) rev = tlr2xy(fwd,crd,inverse = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.