ternary_points {isopleuros} | R Documentation |
Add Points to a Ternary Plot
Description
Add Points to a Ternary Plot
Usage
ternary_points(x, y, z, ...)
## S4 method for signature 'numeric,numeric,numeric'
ternary_points(x, y, z, center = FALSE, scale = FALSE, type = "p", ...)
## S4 method for signature 'ANY,missing,missing'
ternary_points(x, center = FALSE, scale = FALSE, type = "p", ...)
Arguments
x , y , z |
A |
... |
Further graphical parameters (see |
center |
A |
scale |
A |
type |
A |
Value
ternary_points()
is called it for its side-effects. Invisibly returns
a list
with the components:
x | A numeric vector of x values. |
y | A numeric vector of y values. |
z | A numeric vector of z values. |
center | A numeric vector giving the center. |
scale | A numeric vector giving the scale factor. |
Author(s)
N. Frerebeau
See Also
Other geometries:
ternary_arrows()
,
ternary_crosshairs()
,
ternary_labels()
,
ternary_lines()
,
ternary_polygon()
,
ternary_segments()
,
ternary_text()
Examples
## Add points
## Data from Aitchison 1986
ternary_plot(NULL, panel.first = ternary_grid())
ternary_points(lava, col = "red", pch = 16)
## Center and scale
ternary_plot(NULL, axes = FALSE, frame.plot = TRUE)
ternary_points(lava, col = "red", pch = 16)
ternary_points(lava, center = TRUE, col = "blue", pch = 16)
ternary_points(lava, center = TRUE, scale = TRUE, col = "green", pch = 16)