Produces a matrix of ternary plots.
Usage
ternary_pairs(x, ...)
# S4 method for class 'matrix'
ternary_pairs(x, margin = NULL, ...)
# S4 method for class 'data.frame'
ternary_pairs(x, margin = NULL, ...)
Arguments
- x
A
matrix
or adata.frame
. Columns are converted tonumeric
in the same way thatdata.matrix()
does.- ...
Further graphical parameters.
- margin
A
character
string or aninteger
giving the index of the column to be used as the third part of the ternary plots. IfNULL
(the default), marginal compositions will be used (i.e. the geometric mean of the non-selected parts).
Value
ternary_pairs()
is called it for its side-effects: it results in a graphic
being displayed. Invisibly returns x
.
See also
Other graphical elements:
ternary_axis()
,
ternary_box()
,
ternary_grid()
,
ternary_plot()
,
ternary_title()