ternaryPlot | R Documentation |
Produces a ternary diagram, also called a trilinear or triangular diagram.
ternaryPlot(x, y, z, Plot = list(name = "", what = "points", type = "solid", width = "standard", symbol = "circle", filled = TRUE, size = 0.09, color = "black"), axis.range = c(0, 100), num.labels = 6, ticks = TRUE, grids = !ticks, orient = "c", xtitle = deparse(substitute(x)), ytitle = deparse(substitute(y)), ztitle = deparse(substitute(z)), units.title = "Percent", caption = "", margin = c(NA, NA, NA, NA))
x |
the x-axis (bottom) data. |
y |
the y-axis (left side) data. |
z |
the z-axis (right side) data. Note that |
Plot |
control parameters of the plot, see |
axis.range |
the range of the axes. Must be either c(0, 1) or c(0, 100). |
num.labels |
the number of labels to draw on each axis. Best selections are 2 giving (0, 100), 3 (0, 50, 100), 5 (0, 25, 50, 75, 100), or 6 (o, 20, 40, 60, 80, 100). |
ticks |
logical, if |
grids |
logical, if |
orient |
the orientation of the graph. Must be "c" for clockwise or "a" for anti- or counter-clockwise |
xtitle |
title (also called caption) for the x-axis. |
ytitle |
title (also called caption) for the y-axis. |
ztitle |
title (also called caption) for the z-axis. |
units.title |
the units titles, should be either "Percent" of
"Proportion" depending on |
caption |
the figure caption. |
margin |
set up the plot area margins— ignored, included for consistency with other plotting functions in this package. |
The what
component of the Plot
argument must be either
"points" or "none."
Information about the graph.
A call should be made to setPage
to set up the graphics
environment before calling piperPlot
.
Lorenz D.L., 2015, smwrGraphs
setPage
, setMultiPlot
,
piperPlot
, addTernary
## Not run: # See for examples of ternaryPlot: vignette(topic="PiperPlot", package="smwrGraphs") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.