Description Usage Arguments Value Author(s) References See Also Examples
View source: R/ternary.legend.R
Plots a legend giving the directions of the ternary axes and labels
1 | ternary.legend(x0 = 0.2, y0 = 0.8, radius = 0.1, lab1 = "A", lab2 = "B", lab3 = "C", infl = 1.5, cex = 0.75, length = 0.05, ...)
|
x0 |
x-coordinate of the center point |
y0 |
y-coordinate of the center point |
radius |
how long to draw the axes |
lab1 |
string giving first axis label |
lab2 |
string giving second axis label |
lab3 |
string giving third axis label |
infl |
space between axes and labels |
cex |
size of the labels |
length |
length of axis lines |
... |
additional parameters passed to |
None
Tim Keitt <tkeitt@gmail.com>
http://dx.doi.org/10.1016/j.ecolmodel.2012.05.020
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.