Learn R Programming

trifield (version 1.0)

tribox: Draws an equilateral triangle with unit altitude

Description

Like the box graphics function, this function draws a "box" around a ternary plot

Usage

tribox(...)

Arguments

...
Additional graphic parameters to be passed to polygon

Value

  • None

See Also

plot.default, plot.trifield

Examples

Run this code
## The function is currently defined as
function(...)
{
	lx = 2 / sqrt(3)
	tribox = cbind(c(0, lx / 2, lx), c(0, 1, 0))
	polygon(tribox, ...)
  }

Run the code above in your browser using DataLab