ternary_polygon {isopleuros} | R Documentation |
Polygon Drawing
Description
Draws the polygons whose vertices are given in x
, y
and z
.
Usage
ternary_polygon(x, y, z, ...)
## S4 method for signature 'numeric,numeric,numeric'
ternary_polygon(x, y, z, ...)
## S4 method for signature 'ANY,missing,missing'
ternary_polygon(x, y, z, ...)
Arguments
x , y , z |
A |
... |
Further arguments to be passed to |
Value
ternary_polygon()
is called it for its side-effects.
Author(s)
N. Frerebeau
See Also
Other geometries:
ternary_arrows()
,
ternary_crosshairs()
,
ternary_labels()
,
ternary_lines()
,
ternary_points()
,
ternary_segments()
,
ternary_text()
Examples
## Compositional data
coda <- data.frame(
X = c(20, 60, 20),
Y = c(20, 20, 60),
Z = c(60, 20, 20)
)
## Add a polygon
ternary_plot(NULL, panel.first = ternary_grid())
ternary_polygon(coda, density = 5, border = "red")
[Package isopleuros version 1.2.0 Index]