ternary_grid {isopleuros} | R Documentation |
Add Grid to a Ternary Plot
Description
Adds a triangular grid to an existing plot.
Usage
ternary_grid(
primary = NULL,
secondary = NULL,
center = getOption("isopleuros.center"),
scale = getOption("isopleuros.scale"),
col.primary = "darkgray",
col.secondary = "lightgray",
lty.primary = "dashed",
lty.secondary = "dotted",
lwd.primary = 1,
lwd.secondary = lwd.primary
)
Arguments
primary |
An |
secondary |
An |
center |
A |
scale |
A |
col.primary , col.secondary |
A |
lty.primary , lty.secondary |
A |
lwd.primary , lwd.secondary |
A non-negative |
Value
ternary_grid()
is called it for its side-effects.
Author(s)
N. Frerebeau
See Also
Other graphical elements:
ternary_axis()
,
ternary_box()
,
ternary_pairs()
,
ternary_plot()
,
ternary_title()
Examples
## Data from Aitchison 1986
ternary_plot(lava, center = FALSE, scale = FALSE, col = "red", pch = 16)
ternary_grid(5)
## Center
z <- ternary_plot(lava, center = TRUE, col = "blue", pch = 16)
ternary_grid(5, center = z$center)
## Center and scale
z <- ternary_plot(lava, center = TRUE, scale = TRUE, col = "green", pch = 16)
ternary_grid(5, center = z$center, scale = z$scale)