Learn R Programming

ggtern (version 1.0.1.3)

coord_tern: Ternary Coordinate System

Description

coord_tern is a function which creates a transformation mechanism between the ternary system, and, the cartesian system. It inherits from the fixed coordinate system, employing fixed ratio between x and y axes once transformed.

Usage

coord_tern(T = "x", L = "y", R = "z", xlim = c(0, 1),
    ylim = c(0, 1), Tlim = NULL, Llim = NULL, Rlim = NULL,
    clockwise = FALSE)

Arguments

T
the Top Mapping (default x)
L
the Left Mapping (default y)
R
the Right Mapping (default z)
xlim
the range of x in the cartesian space
ylim
the range of y in the cartesian space
Tlim
the range of T in the ternary space
Llim
the range of L in the ternary space
Rlim
the range of R in the ternary space
clockwise
logical (default FALSE) indicating whether the precession of axes is clockwise (TRUE) or counter-clockwise (FALSE).

Value

  • ternary coordinate system object.