Learn R Programming

trifield (version 1.0)

triaxes: Draws ternary axis lines

Description

Draws lines separating adjacent halves of the equilateral triangle with unit altitude

Usage

triaxes(lcol = "darkgrey", lty = 2)

Arguments

lcol
line color
lty
line type

Value

  • None

See Also

plot.default, plot.trifield

Examples

Run this code
## The function is currently defined as
function(lcol = "darkgrey", lty = 2)
{
	lx = 2 / sqrt(3)
	lines(c(lx / 4, lx), c(1 / 2, 0),
	      lty = lty, col = lcol)
	lines(c(3 * lx / 4, 0), c(1 / 2, 0),
		  lty = lty, col = lcol)
	lines(c(lx / 2, lx / 2), c(0, 1),
		  lty = lty, col = lcol)
  }

Run the code above in your browser using DataLab