tribox: Draws an equilateral triangle with unit altitude

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/tribox.R

Description

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

Usage

1

Arguments

...

Additional graphic parameters to be passed to polygon

Value

None

Author(s)

Tim Keitt <tkeitt@gmail.com>

References

http://dx.doi.org/10.1016/j.ecolmodel.2012.05.020

See Also

plot.default, plot.trifield

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# See demo(trifield)
## Not run: 
grid.size = 128
par(mar = rep(2, 4), oma = rep(0, 4))
tg = ternary.grid(grid.size)
f = function(x)
        sin(2 * pi * x[1]) +
        sin(3 * pi * x[2]) +
        sin(4 * pi * x[3])
z = ternary.apply(tg, f)
tf = ternary.field(tg, z)
plot(tf)
ternary.legend()

## End(Not run)

Example output



trifield documentation built on May 29, 2017, 11:44 p.m.