Learn R Programming

isopleuros (version 1.4.0)

ternary_box: Draw a Box around a Ternary Plot

Description

Draw a Box around a Ternary Plot

Usage

ternary_box(lty = "solid", ...)

Value

ternary_box() is called it for its side-effects.

Arguments

lty

A character string or numeric value specifying the line type of the box.

...

Other graphical parameters may also be passed as arguments to this function, particularly, col or lwd.

Author

N. Frerebeau

See Also

Other graphical elements: ternary_axis(), ternary_grid(), ternary_pairs(), ternary_plot(), ternary_title()

Examples

Run this code
## Add axis
ternary_plot(NULL, axes = FALSE)
ternary_axis(side = 1, col = "red")
ternary_axis(side = 2, col = "blue")
ternary_axis(side = 3, col = "green")

## Add box and grid
ternary_plot(NULL, axes = FALSE)
ternary_box(lty = "dashed", col = "red")
ternary_grid(lty.primary = "dotted")

Run the code above in your browser using DataLab