| ternary_lines | R Documentation |
Add Connected Line Segments to a Ternary Plot
ternary_lines(x, y, z, ...)
## S4 method for signature 'numeric,numeric,numeric'
ternary_lines(x, y, z, type = "l", ...)
## S4 method for signature 'ANY,missing,missing'
ternary_lines(x, type = "l", ...)
x, y, z |
A |
... |
Further graphical parameters (see |
type |
A |
ternary_lines() is called it for its side-effects.
N. Frerebeau
graphics::lines()
Other geometries:
ternary_arrows(),
ternary_crosshairs(),
ternary_image(),
ternary_labels(),
ternary_points(),
ternary_polygon(),
ternary_segments(),
ternary_text()
## Compositional data
coda <- data.frame(
X = c(20, 60, 20, 20),
Y = c(20, 20, 60, 40),
Z = c(60, 20, 20, 40)
)
## Add lines
ternary_plot(NULL, panel.first = ternary_grid())
ternary_lines(coda, col = "red", lwd = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.