ternary_text | R Documentation |
Draws the strings given in the vector labels
at the coordinates given by
x
, y
and z
.
ternary_text(x, y, z, ...)
## S4 method for signature 'numeric,numeric,numeric'
ternary_text(
x,
y,
z,
center = FALSE,
scale = FALSE,
labels = seq_along(x),
...
)
## S4 method for signature 'ANY,missing,missing'
ternary_text(x, center = FALSE, scale = FALSE, labels = seq_along(x$x), ...)
x , y , z |
A |
... |
Further arguments to be passed to |
center |
A |
scale |
A |
labels |
A |
ternary_text()
is called it for its side-effects.
N. Frerebeau
graphics::text()
Other geometries:
ternary_arrows()
,
ternary_crosshairs()
,
ternary_image()
,
ternary_labels()
,
ternary_lines()
,
ternary_points()
,
ternary_polygon()
,
ternary_segments()
## Compositional data
coda <- data.frame(
X = c(20, 60, 20),
Y = c(20, 20, 60),
Z = c(60, 20, 20)
)
## Add text
ternary_plot(NULL, panel.first = ternary_grid())
ternary_text(coda, labels = c("A", "B", "C"), col = "red", cex = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.