Computes and draws the closed geometric mean of the set of points specified.
Usage
ternary_mean(x, y, z, ...)
# S4 method for class 'numeric,numeric,numeric'
ternary_mean(x, y, z, ...)
# S4 method for class 'ANY,missing,missing'
ternary_mean(x, y, z, ...)Arguments
- x, y, z
A
numericvector giving the x, y and z ternary coordinates of a set of points. Ifyandzare missing, an attempt is made to interpretxin a suitable way (seegrDevices::xyz.coords()).- ...
Further arguments to be passed to
graphics::points().
See also
Other statistics:
ternary_contour(),
ternary_density(),
ternary_ellipse(),
ternary_hull(),
ternary_pca()
Examples
## Mean
## Data from Aitchison 1986
ternary_plot(lava, panel.first = ternary_grid())
ternary_mean(lava, pch = 16, col = "red")
ternary_confidence(lava, level = 0.95, border = "red", lty = 1)
