Computes and draws principal component.
ternary_pca(x, y, z, ...)
# S4 method for numeric,numeric,numeric
ternary_pca(x, y, z, axis = 1, ...)
# S4 method for ANY,missing,missing
ternary_pca(x, axis = 1, ...)
- x, y, z
numeric vector giving the x, y and z ternary coordinates
of a set of points. If
z are missing, an attempt is made to
x in a suitable way (see
Further arguments to be passed to
integer specifying the dimension to be plotted.
ternary_pca() is called it for its side-effects.
## Data from Aitchison 1986
ternary_plot(lava, panel.first = ternary_grid())
ternary_pca(lava, axis = 1, col = "red", lty = 2)