Draws the polygons whose vertices are given in x, y and z.

## Usage

ternary_polygon(x, y, z, ...)

# S4 method for numeric,numeric,numeric
ternary_polygon(x, y, z, ...)

# S4 method for ANY,missing,missing
ternary_polygon(x, y, z, ...)

## Arguments

x, y, z

A numeric vector giving the x, y and z ternary coordinates of a set of points. If y and z are missing, an attempt is made to interpret x in a suitable way (see grDevices::xyz.coords()).

...

Further arguments to be passed to graphics::polygon().

## Value

ternary_polygon() is called it for its side-effects.

graphics::polygon()

Other geometries: ternary_arrows(), ternary_lines(), ternary_points(), ternary_text()

N. Frerebeau

## Examples

## Compositional data
coda <- data.frame(
X = c(20, 60, 20, 20),
Y = c(20, 20, 60, 40),
Z = c(60, 20, 20, 40)
)