ternary_labels | R Documentation |
Optimize the location of text labels to minimize overplotting text.
ternary_labels(x, y, z, ...)
## S4 method for signature 'numeric,numeric,numeric'
ternary_labels(
x,
y,
z,
center = FALSE,
scale = FALSE,
labels = seq_along(x),
type = c("text", "shadow"),
...
)
## S4 method for signature 'ANY,missing,missing'
ternary_labels(x, center = FALSE, scale = FALSE, labels = seq_along(x$x), ...)
x , y , z |
A |
... |
Further graphical parameters (see |
center |
A |
scale |
A |
labels |
A |
type |
A |
ternary_labels()
is called it for its side-effects.
N. Frerebeau
graphics::text()
Other geometries:
ternary_arrows()
,
ternary_crosshairs()
,
ternary_image()
,
ternary_lines()
,
ternary_points()
,
ternary_polygon()
,
ternary_segments()
,
ternary_text()
## Compositional data
coda <- data.frame(
X = c(41.0, 40, 39.0),
Y = c(19.5, 20, 20.5),
Z = c(39.5, 40, 40.5)
)
## Add text
ternary_plot(NULL, panel.first = ternary_grid())
ternary_points(coda)
ternary_labels(coda, labels = c("A", "B", "C"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.