Learn R Programming

isopleuros (version 1.4.0)

ternary_pairs: Ternary Plot Matrices

Description

Produces a matrix of ternary plots.

Usage

ternary_pairs(x, ...)

# S4 method for matrix ternary_pairs(x, margin = NULL, ...)

# S4 method for data.frame ternary_pairs(x, margin = NULL, ...)

Value

ternary_pairs() is called it for its side-effects: it results in a graphic being displayed. Invisibly returns x.

Arguments

x

A matrix or a data.frame. Columns are converted to numeric in the same way that data.matrix() does.

...

Further graphical parameters.

margin

A character string or an integer giving the index of the column to be used as the third part of the ternary plots. If NULL (the default), marginal compositions will be used (i.e. the geometric mean of the non-selected parts).

Author

N. Frerebeau

See Also

Other graphical elements: ternary_axis(), ternary_box(), ternary_grid(), ternary_plot(), ternary_title()

Examples

Run this code
## Data from Aitchison 1986
## Ternary plots with marginal compositions
ternary_pairs(boxite)

## Ternary plots with endite
ternary_pairs(boxite, margin = "E")

Run the code above in your browser using DataLab